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