mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-16 18:56:54 +02:00

In the case the target type is char[] or const char[], If the array is '\0' teminated, msgpack-c packs the characters before '\0', otherwise packs all characters. When converting, the array has the size that is greater than msgpack::object STR's size, msgpack-c adds '\0' to just after converted characters. Otherwise msgpack-c doesn't add '\0'.