Hi,
Can we add the following to EndianStream for completeness?
void read(out byte x) { readExact(&x, x.sizeof); }
void read(out ubyte x) { readExact(&x, x.sizeof); }
void write(out byte x) { writeExact(&x, x.sizeof); }
void write(out ubyte x) { writeExact(&x, x.sizeof); }
otherwise code such as the following won't compile without a fudge:
s = new EndianStream(stream);
byte b;
ubyte ub;
s.read(b);
s.read(ub);
Keep up the good work.
Scott