sizeOf<T extends Primitive> function
Implementation
int sizeOf<T extends Primitive>() => switch (T) {
const (Float) || const (Int32) => 4,
const (Int16) => 2,
const (Uint8) => 1,
_ => 1,
};