Return type is size_t, but in the implementation of (de)serialization functions, "return -1" and "return -2" are used to indicate errors.
Return type is size_t, but in the implementation of (de)serialization functions, "return -1" and "return -2" are used to indicate errors.