[−][src]Module casperlabs_types::bytesrepr
Contains serialization and deserialization code for types used throughout the system.
Enums
Error | Serialization and deserialization errors. |
Constants
BOOL_SERIALIZED_LENGTH | The number of bytes in a serialized |
I32_SERIALIZED_LENGTH | The number of bytes in a serialized |
I64_SERIALIZED_LENGTH | The number of bytes in a serialized |
U8_SERIALIZED_LENGTH | The number of bytes in a serialized |
U16_SERIALIZED_LENGTH | The number of bytes in a serialized |
U32_SERIALIZED_LENGTH | The number of bytes in a serialized |
U64_SERIALIZED_LENGTH | The number of bytes in a serialized |
U128_SERIALIZED_LENGTH | The number of bytes in a serialized |
U256_SERIALIZED_LENGTH | The number of bytes in a serialized |
U512_SERIALIZED_LENGTH | The number of bytes in a serialized |
UNIT_SERIALIZED_LENGTH | The number of bytes in a serialized |
Traits
FromBytes | A type which can be deserialized from a |
ToBytes | A type which can be serialized to a |
Functions
allocate_buffer | Returns a |
deserialize | Deserializes |
serialize | Serializes |
unchecked_allocate_buffer | Returns a |