mirror of
https://github.com/msgpack/msgpack-c
synced 2026-06-08 16:11:40 +00:00
Fixed links.
+9
-9
@@ -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)
|
||||
|
||||
+2
-2
@@ -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).
|
||||
|
||||
+1
-1
@@ -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.
|
||||
|
||||
+2
-2
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user