sgio.utility

Undocumented in source.

Members

Functions

bufferGetString
string bufferGetString(const(ubyte)[] buffer)

Get a string from buffer where the string spans the length of the buffer. The span does not need to be null-terminated.

bufferToHexDump
string bufferToHexDump(const(ubyte)[] buff, ulong length)
Undocumented in source. Be warned that the author may not have intended to support it.
decodeByte
ubyte decodeByte(const(ubyte)[] buffer, int offset, ubyte mask)

Decode the byte in the buffer given the offset and bitmask. We find the byte, '&' with the mask, then right-shift to get the final result.

readXXHelperCreateByte
ubyte readXXHelperCreateByte(ubyte rdprotect, ubyte dpo, ubyte fua, ubyte rarc)

Simple helper function to create the second byte of the CDB for read(10), read(12), and read(16). For a description of the arguments, see the Read(XX) commands.

Meta