Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

ubyte[] => (int or float) => ubyte[]

Moderators: larsivi kris

Posted: 09/19/07 16:27:18

I need to do following conversions:

ubyte[] => (int or float)

(int or float) => ubyte[]

Is that possible to do this with Tango? (what is the best way?)

Author Message

Posted: 09/19/07 16:56:29 -- Modified: 09/19/07 16:56:55 by

Use a Reader & Writer as appropriate. They operate on a Buffer instance, which itself can be tied to a file, socket, or just an array. Reader/Writer also support endian configuration. See and, and there should be an example online