diff --git a/_Sidebar.md b/_Sidebar.md index fd196b6..ba2709a 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -1,12 +1,12 @@ * [Home](Home) * v1.1.x - * [msgpack-c](v1_1/cpp_overview) - * [adaptor](v1_1/cpp_adaptor) + * [msgpack-c](v1_1_cpp_overview) + * [adaptor](v1_1_cpp_adaptor) * v1.0.x - * [msgpack-c](v1_0/cpp_overview) - * [configure](v1_0/cpp_configure) - * [pack](v1_0/cpp_packer) - * [unpack](v1_0/cpp_unpacker) - * [object](v1_0/cpp_object) - * [adaptor](v1_0/cpp_adaptor) - * [API versioning](v1_0/cpp_versioning) + * [msgpack-c](v1_0_cpp_overview) + * [configure](v1_0_cpp_configure) + * [pack](v1_0_cpp_packer) + * [unpack](v1_0_cpp_unpacker) + * [object](v1_0_cpp_object) + * [adaptor](v1_0_cpp_adaptor) + * [API versioning](v1_0_cpp_versioning) diff --git a/v1_0_cpp_adaptor.md b/v1_0_cpp_adaptor.md index 57424f2..8f32b60 100644 --- a/v1_0_cpp_adaptor.md +++ b/v1_0_cpp_adaptor.md @@ -2,7 +2,7 @@ When you want to pack to msgpack::object from a various type object, you need an adaptor. Converting to msgpack::object from a various type object and vice versa, it requires an adaptor too. -See [conversion](cpp_object#conversion). +See [conversion](v1_0_cpp_object#conversion). ## predefined adaptors @@ -106,6 +106,6 @@ MSGPACK_ADD_ENUM(your_enum_class); You need to use MSGPACK_ADD_ENUM in the global namespace. And you need to use MSGPACK_ADD_ENUM before include msgpack.hpp. You might need to re-struct your source code. -The macro MSGPACK_DEFINE provides [packing](cpp_packer#packing-enums), converting to msgpack object with or without zone, and converting to your_enum from msgpack::object functionalities. your_enum is packed/converted as msgpack positive/negative integer. +The macro MSGPACK_DEFINE provides [packing](v1_0_cpp_packer#packing-enums), converting to msgpack object with or without zone, and converting to your_enum from msgpack::object functionalities. your_enum is packed/converted as msgpack positive/negative integer. See an [example](https://github.com/msgpack/msgpack-c/blob/master/example/cpp03/enum.cpp). diff --git a/v1_0_cpp_configure.md b/v1_0_cpp_configure.md index f533267..866a590 100644 --- a/v1_0_cpp_configure.md +++ b/v1_0_cpp_configure.md @@ -46,7 +46,7 @@ Default value: 32 When msgpack format byte stream contains composite data, it would contain array of array of ... (N times) ### C++ -In C, a stack of unpack context is implemented as a std::vector. MSGPACK_EMBED_STACK_SIZE means the hint of the composite level. msgpack reserves MSGPACK_EMBED_STACK_SIZE elements of the std::vector. If the msgpack format byte stream contains over MSGPACK_EMBED_STACK_SIZE elements, std::vector is expanded. You can set the limit of the composite level. See [limit size of elements](cpp_unpacker#limit-size-of-elements). +In C, a stack of unpack context is implemented as a std::vector. MSGPACK_EMBED_STACK_SIZE means the hint of the composite level. msgpack reserves MSGPACK_EMBED_STACK_SIZE elements of the std::vector. If the msgpack format byte stream contains over MSGPACK_EMBED_STACK_SIZE elements, std::vector is expanded. You can set the limit of the composite level. See [limit size of elements](v1_0_cpp_unpacker#limit-size-of-elements). ### C In C, a stack of unpack context is implemented as an array. MSGPACK_EMBED_STACK_SIZE means the limit of the composite level. If N >= MSGPACK_EMBED_STACK_SIZE unpacking functions return parse error. diff --git a/v1_1_cpp_adaptor.md b/v1_1_cpp_adaptor.md index 35c5775..21a8f18 100644 --- a/v1_1_cpp_adaptor.md +++ b/v1_1_cpp_adaptor.md @@ -2,7 +2,7 @@ When you want to pack to msgpack::object from a various type object, you need an adaptor. Converting to msgpack::object from a various type object and vice versa, it requires an adaptor too. -See [conversion](cpp_object#conversion). +See [conversion](v1_1_cpp_object#conversion). ## predefined adaptors @@ -173,6 +173,6 @@ MSGPACK_ADD_ENUM(your_enum_class); You need to use MSGPACK_ADD_ENUM in the global namespace. -The macro MSGPACK_DEFINE provides [packing](cpp_packer#packing-enums), converting to msgpack object with or without zone, and converting to your_enum from msgpack::object functionalities. your_enum is packed/converted as msgpack positive/negative integer. +The macro MSGPACK_DEFINE provides [packing](v1_1_cpp_packer#packing-enums), converting to msgpack object with or without zone, and converting to your_enum from msgpack::object functionalities. your_enum is packed/converted as msgpack positive/negative integer. See an [example](https://github.com/msgpack/msgpack-c/blob/master/example/cpp03/enum.cpp).