const writePackedIntNative: type = switch (native_endian) {
    .Little => writePackedIntLittle,
    .Big => writePackedIntBig,
};