Read size bytes from the stream
ubyte[4] data = [0, 1, 2, 3]; auto stream = OMemStream(data); const res = stream.read(4); assert(res == data); assertThrown!AssertError(stream.read(1));
See Implementation
Read size bytes from the stream