Can&#x27;t think of a common programming language which doesn&#x27;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.<p>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.