Crate lightyear_serde

Crate lightyear_serde 

Source
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_serde crate.
reader
Provides the Reader struct 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 Writer struct and traits for serializing data into a byte stream. Writer that can reuse memory allocation

Enums§

SerializationError
Errors that can occur during serialization or deserialization.

Traits§

ToBytes
Trait for types that can be serialized to and deserialized from a byte stream.

Type Aliases§

RawData