I noticed that the binry type is coded as a string type. Doesn't that cause problems if the binary data I want to transfer is, for instance, a0 00 1b 2a. Doesn't the string functions like length() stop at the first zero character?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
String/binary data is encoded as {length,payload} in Hessian. The std::string class is created using the (size_t, char*) constructor so that the string object has it's length set, not computer. Therefore all operations on the string object are binary-safe, including lenght(), iterators and whatnot.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I noticed that the binry type is coded as a string type. Doesn't that cause problems if the binary data I want to transfer is, for instance, a0 00 1b 2a. Doesn't the string functions like length() stop at the first zero character?
String/binary data is encoded as {length,payload} in Hessian. The std::string class is created using the (size_t, char*) constructor so that the string object has it's length set, not computer. Therefore all operations on the string object are binary-safe, including lenght(), iterators and whatnot.