Trait mesh::payload::PackedEncode
source · pub trait PackedEncode<T> {
// Required methods
fn write_packed(&self, data: &[T], writer: PackedWriter<'_, '_>);
fn compute_packed_size(&self, data: &[T], sizer: PackedSizer<'_>);
fn must_pack(&self) -> bool;
}
Expand description
Encoder methods for writing packed fields.
Required Methods§
sourcefn write_packed(&self, data: &[T], writer: PackedWriter<'_, '_>)
fn write_packed(&self, data: &[T], writer: PackedWriter<'_, '_>)
Writes a slice of data in packed format.
sourcefn compute_packed_size(&self, data: &[T], sizer: PackedSizer<'_>)
fn compute_packed_size(&self, data: &[T], sizer: PackedSizer<'_>)
Computes the size of the data in packed format.