Reading bytes and converting to int

Jonathan M Davis jmdavisProg at gmx.com
Sat Aug 25 17:27:01 PDT 2012


On Sunday, August 26, 2012 01:25:04 joao wrote:
> It worked! Thanks.
> Just one more question, I and to do the reverse. Like 4132 =>
> "\x24\x10"

Use std.bitmanip.write:

http://dlang.org/phobos/std_bitmanip.html#write

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list