3 ms·
Can't think of a common programming language which doesn't support saving bit-accurate copies of floats in a contiguous buffer. Even in JavaScript you can put y
by microcolonel 11y ago
Can't think of a common programming language which doesn't support saving bit-accurate copies of floats in a contiguous buffer. Even in JavaScript you can put your doubles in a Float64Array and convert that to or from a buffer.
If you want headers, you can define those as text and just use extents to embed the binary data. Tar is another alternative, pretty easy to implement.