Name | Description | |
---|---|---|
NByteReader Constructor | Creates a new byte reader for the specified byte array. |
The following tables list the members exposed by NByteReader.
Name | Description | |
---|---|---|
NByteReader Constructor | Creates a new byte reader for the specified byte array. |
Name | Description | |
---|---|---|
EndReached | Checks if the byte reader has reached the end of the bytes to read. | |
Length | Gets the length of the byte array this reader operates on. | |
Position | Gets or sets the current reader position in the byte array. | |
RemainingLength | Gets the remaining number of bytes to read, which is equal to Length - Position. |
Name | Description | |
---|---|---|
PeekBit | Returns the bit at the given index in the current byte. Does not advance the reading position. Call the SkipByte method to advance the reading position when you finish reading bits from the current byte. | |
PeekByte | Returns the byte at the current position without moving the reading pointer. | |
ReadByte | Reads a byte and increments the current position. | |
ReadByteArray | Read as much bytes as necessary to fill the specified array of bytes. | |
ReadBytes | Overloaded. Reads the specified number of bytes. | |
ReadDoubleBE | Reads a double (big endian). | |
ReadDoubleLE | Reads a double (little endian). | |
ReadInt16BE | Reads a short (big endian). | |
ReadInt16LE | Reads a short (little endian). | |
ReadInt32BE | Reads an int (big endian). | |
ReadInt32LE | Reads an int (little endian). | |
ReadInt64BE | Reads a long (big endian). | |
ReadInt64LE | Reads a long (little endian). | |
ReadIntArray | Read as much bytes as necessary to fill the specified array of integers. | |
ReadSingleBE | Reads a single (big endian). | |
ReadSingleLE | Reads a single (little endian). | |
ReadToEnd | Reads all the bytes to the end of the byte array. | |
ReadUInt16BE | Reads an unsigned short (big endian). | |
ReadUInt16LE | Reads an unsigned short (little endian). | |
ReadUInt32BE | Reads an unsigned int (big endian). | |
ReadUInt32LE | Reads an unsigned int (little endian). | |
SkipByte | Skips 1 byte. | |
SkipBytes | Skips the given number of bytes. |