Skip to main content

write_field_bytes

Function write_field_bytes 

Source
pub fn write_field_bytes(
    ty: FieldType,
    value: &MaterialValue,
    dst: &mut [u8],
) -> Option<()>
Expand description

Writes value into dst as raw little-endian bytes matching ty. dst must be at least ty.size() bytes long.