Expand description
Format-agnostic CPU helpers for quantized storage.
Holds the dyn-boxable QuantizedType trait (per-block-format scalar
ops) plus cpu_zeros / cpu_from_data constructors used by the
fuel-cpu-backend-side CpuQStorage adapter and by the file-format
readers in fuel-core/src/quantized/.
Traits§
Functions§
- cpu_
from_ data - Builds CPU quantized storage from raw block bytes. The bytes are copied,
so
datamay be owned or borrowed and need not be aligned fordtype. ReturnsErrifdatais not a whole number of blocks. - cpu_
zeros