Module casper_types::bytesrepr [−][src]
Contains serialization and deserialization code for types used throughout the system.
Structs
| Bytes | A newtype wrapper for bytes that has efficient serialization routines. |
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 |
| OPTION_NONE_TAG | The tag representing a |
| OPTION_SOME_TAG | The tag representing a |
| RESULT_ERR_TAG | The tag representing an |
| RESULT_OK_TAG | The tag representing an |
| 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 |