Represents a simple read buffer used for reading byte data.
More...
Represents a simple read buffer used for reading byte data.
◆ SimpleReadBuffer() [1/2]
| AMPS.Client.SimpleReadBuffer.SimpleReadBuffer |
( |
| ) |
|
|
inline |
◆ SimpleReadBuffer() [2/2]
| 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. |
◆ PeekByte() [1/2]
| 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.
◆ PeekByte() [2/2]
| 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.
◆ put()
| 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. |
◆ ReadByte()
| byte AMPS.Client.SimpleReadBuffer.ReadByte |
( |
| ) |
|
|
inline |
Reads a byte from the buffer and advances the position.
- Returns
- The byte read from the buffer.
◆ Reset()
| 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. |
◆ Buffer
| byte [] AMPS.Client.SimpleReadBuffer.Buffer |
◆ Length
| int AMPS.Client.SimpleReadBuffer.Length |
Gets or sets the length of the buffer.
◆ Position
| 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