Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2014
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
D 0.19 KB | None | 0 0
  1.   auto buf = new MemoryOutputStream();
  2.   buf.write([0,0,0,0]);
  3.   writeJsonString(buf, j);
  4.   buf.data[0..uint.sizeof] = nativeToBigEndian!uint(to!uint(buf.data.length));
  5.   writeln(buf.data);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement