Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Unboxed operations assumes that value being serialized is fully filling the underlying buffer. When that's the case, it is not necessary to prefix the value's binary representation by its size, as it is exactly the buffer's size.
Unboxed operations only apply to top-level string-like values. These are defined as follows:
string
or bytes
;like
and map
operators to top-level string-like values.When unboxed operations are applied to values not supporting that operation, they automatically fall-back to their boxed counter-part.
val encode_bin : 'a t -> 'a encode_bin staged
Same as encode_bin
for unboxed values.
val decode_bin : 'a t -> 'a decode_bin staged
Same as decode_bin
for unboxed values.