Expand description
§Lightyear Serde
This crate provides serialization and deserialization utilities for Lightyear.
It defines the ToBytes trait for converting types to and from byte representations,
along with Reader and Writer utilities for handling byte streams.
It includes implementations for common types and collections, and utilities for efficient serialization, such as varint encoding.
This crate is fundamental for preparing data to be sent over the network and for reconstructing data received from remote peers.
Modules§
- entity_
map - Utilities for mapping entities during serialization and deserialization. Map between local and remote entities
- prelude
- Commonly used items from the
lightyear_serdecrate. - reader
- Provides the
Readerstruct and traits for deserializing data from a byte stream. - registry
- Defines traits and structures for registering serializable types.
- varint
- Utilities for variable-length integer encoding and decoding.
- writer
- Provides the
Writerstruct and traits for serializing data into a byte stream. Writer that can reuse memory allocation
Enums§
- Serialization
Error - Errors that can occur during serialization or deserialization.
Traits§
- ToBytes
- Trait for types that can be serialized to and deserialized from a byte stream.