- dumpToFile
void dumpToFile(IStream src, string fileName, size_t chunkSize)
Dumps abstract stream into a file
- nativeToBigEndian
immutable(T) nativeToBigEndian(T src)
Converts the given value from the native endianness to big endian
- nativeToLittleEndian
immutable(T) nativeToLittleEndian(T src)
Converts the given value from the native endianness to little endian
- platformEndian
immutable(Endian) platformEndian()
Undocumented in source. Be warned that the author may not have intended to support it.
- readRaw
T readRaw(IStream s)
Reads a raw byte sequence of type T from the stream
- readScalar
T readScalar(IStream s)
Reads a scalar variable from the stream preserving the stream endianness
- reverse
void reverse(T[n] a)
Performes inplace reverse of an array
- swapEndianness
immutable(T) swapEndianness(T src)
Swaps endianness of a given value
- writeRaw
void writeRaw(IStream s, T var)
Writes a raw byte sequence of a variable type T to the stream
- writeScalar
void writeScalar(IStream s, T var)
Writes a scalar variable to the stream preserving the stream endianness