Represents a simple read buffer used for reading byte data.
More...
Represents a simple read buffer used for reading byte data.
| AMPS.Client.SimpleReadBuffer.SimpleReadBuffer |
( |
| ) |
|
|
inline |
| AMPS.Client.SimpleReadBuffer.SimpleReadBuffer |
( |
byte[] |
buf, |
|
|
int |
length |
|
) |
| |
|
inline |
Initializes a new instance of the SimpleReadBuffer class with the specified buffer and length.
- Parameters
-
| buf | The buffer. |
| length | The length of the buffer. |
| byte AMPS.Client.SimpleReadBuffer.PeekByte |
( |
| ) |
|
|
inline |
Peeks at the next byte in the buffer without advancing the position.
- Returns
- The next byte in the buffer.
| byte AMPS.Client.SimpleReadBuffer.PeekByte |
( |
int |
position | ) |
|
|
inline |
Peeks at the byte at the specified position in the buffer.
- Parameters
-
| position | The position to peek at. |
- Returns
- The byte at the specified position.
| void AMPS.Client.SimpleReadBuffer.put |
( |
int |
index, |
|
|
byte |
b |
|
) |
| |
|
inline |
Puts a byte at the specified index in the buffer.
- Parameters
-
| index | The index at which to put the byte. |
| b | The byte to put. |
| byte AMPS.Client.SimpleReadBuffer.ReadByte |
( |
| ) |
|
|
inline |
Reads a byte from the buffer and advances the position.
- Returns
- The byte read from the buffer.
| void AMPS.Client.SimpleReadBuffer.Reset |
( |
byte[] |
buf, |
|
|
int |
pos, |
|
|
int |
length |
|
) |
| |
|
inline |
Resets the SimpleReadBuffer with the specified buffer, position, and length.
- Parameters
-
| buf | The buffer. |
| pos | The position within the buffer. |
| length | The length of the buffer. |
| byte [] AMPS.Client.SimpleReadBuffer.Buffer |
| int AMPS.Client.SimpleReadBuffer.Length |
Gets or sets the length of the buffer.
| int AMPS.Client.SimpleReadBuffer.Position |
Gets or sets the position within the buffer.
The documentation for this class was generated from the following file:
- AMPS.Client/SimpleReadBuffer.cs