D Documentation  
read
size_t read(ubyte[] buffer);
void read(out byte x);
void read(out ubyte x);
void read(out short x);
void read(out ushort x);
void read(out int x);
void read(out uint x);
void read(out long x);
void read(out ulong x);
void read(out float x);
void read(out double x);
void read(out real x);
void read(out ifloat x);
void read(out idouble x);
void read(out ireal x);
void read(out cfloat x);
void read(out cdouble x);
void read(out creal x);
void read(out char x);
void read(out wchar x);
void read(out dchar x);


Read a basic type or counted string, throwing a ReadException if it could not be read. Outside of byte, ubyte, and char, the format is implementation-specific and should not be used except as opposite actions to write.
The first call is somewhat special in that it reads a block of data to fill the buffer array. It reads buffer.length bytes at maximum and returns the number of bytes read.
Created using PHP docwiki written by Markus Dangl. Best viewed with Mozilla Firefox.