Module simple_serialization

Module simple_serialization 

Source
Expand description

This module implements a simple data serializer/deserialzer that can be used to read/write data serializations in memory. Most of the functions here where designed to use pre-allocated memory segments and/or vectors in place. As such, this module is not recommended for complex serializations or large values.

If you want to use the operation ? to remap the errors form this just implement the trait std::convert::From to convert ErrorKind into your own error type.

Structs§

SimpleSliceDeserializer
This struct implements a simple data deserializer. It is the counterpart of the SimpleDataSerializer trait.
SimpleSliceSerializer
This struct implements a simple serializer that writes data into a borrowed byte slice.

Enums§

ErrorKind
Errors generated by this

Traits§

SimpleDataDeserializer
This trait implements a simple deserializer for basic data types. It follows the format used by Java’s java.io.DataOutputStream so it reads the values using the big endian format.
SimpleDataSerializer
This trait implements a simple serializer for basic data types. It follows the format used by Java’s java.io.DataOutputStream and write all values using the big endian format.

Type Aliases§

Result