|
ProtonNet Server 1.0
An Open Solution for all your socket or web api needs.
|
Interface defining the operations for a memory buffer. More...
Public Member Functions | |
| bool | IsEmpty () |
| Checks if the buffer is empty. | |
| byte[] | ToArray () |
| Converts the buffer to a byte array. | |
| byte[] | ToArray (int position, int length) |
| Converts a portion of the buffer to a byte array. | |
| void | Clear () |
| Clears the buffer. | |
| string | ExtractString (int position, int length) |
| Extracts a string from the buffer. | |
| void | Remove (int position, int length) |
| Removes a portion of the buffer. | |
| void | Reserve (int capacity) |
| Reserves additional capacity for the buffer. | |
| void | Resize (int length) |
| Resizes the buffer to the specified length. | |
| void | Shift (int positionAmount) |
| Shifts the current position in the buffer. | |
| int | Write (byte value) |
| Writes a byte to the buffer. | |
| int | Write (string text) |
| Writes a string to the buffer. | |
| int | Write (byte[] buffer) |
| Writes a byte array to the buffer. | |
| int | Write (byte[] buffer, int position, int length) |
| Writes a portion of a byte array to the buffer. | |
Properties | |
| int | Capacity [get] |
| Gets the capacity of the buffer. | |
| byte[] | Buffer [get] |
| Gets the byte array buffer. | |
| int | Length [get] |
| Gets the current length of the buffer. | |
| int | Position [get] |
| Gets the current position in the buffer. | |
| byte | this[int index] [get] |
| Gets the byte at the specified index. | |
Interface defining the operations for a memory buffer.
| void XmobiTea.ProtonNetCommon.IMemoryBuffer.Clear | ( | ) |
Clears the buffer.
Implemented in XmobiTea.ProtonNetCommon.MemoryBuffer.
| string XmobiTea.ProtonNetCommon.IMemoryBuffer.ExtractString | ( | int | position, |
| int | length ) |
Extracts a string from the buffer.
Implemented in XmobiTea.ProtonNetCommon.MemoryBuffer.
| bool XmobiTea.ProtonNetCommon.IMemoryBuffer.IsEmpty | ( | ) |
Checks if the buffer is empty.
Implemented in XmobiTea.ProtonNetCommon.MemoryBuffer.
| void XmobiTea.ProtonNetCommon.IMemoryBuffer.Remove | ( | int | position, |
| int | length ) |
Removes a portion of the buffer.
Implemented in XmobiTea.ProtonNetCommon.MemoryBuffer.
| void XmobiTea.ProtonNetCommon.IMemoryBuffer.Reserve | ( | int | capacity | ) |
Reserves additional capacity for the buffer.
Implemented in XmobiTea.ProtonNetCommon.MemoryBuffer.
| void XmobiTea.ProtonNetCommon.IMemoryBuffer.Resize | ( | int | length | ) |
Resizes the buffer to the specified length.
Implemented in XmobiTea.ProtonNetCommon.MemoryBuffer.
| void XmobiTea.ProtonNetCommon.IMemoryBuffer.Shift | ( | int | positionAmount | ) |
Shifts the current position in the buffer.
Implemented in XmobiTea.ProtonNetCommon.MemoryBuffer.
| byte[] XmobiTea.ProtonNetCommon.IMemoryBuffer.ToArray | ( | ) |
Converts the buffer to a byte array.
Implemented in XmobiTea.ProtonNetCommon.MemoryBuffer.
| byte[] XmobiTea.ProtonNetCommon.IMemoryBuffer.ToArray | ( | int | position, |
| int | length ) |
Converts a portion of the buffer to a byte array.
Implemented in XmobiTea.ProtonNetCommon.MemoryBuffer.
| int XmobiTea.ProtonNetCommon.IMemoryBuffer.Write | ( | byte | value | ) |
Writes a byte to the buffer.
Implemented in XmobiTea.ProtonNetCommon.MemoryBuffer.
| int XmobiTea.ProtonNetCommon.IMemoryBuffer.Write | ( | byte[] | buffer | ) |
Writes a byte array to the buffer.
Implemented in XmobiTea.ProtonNetCommon.MemoryBuffer.
| int XmobiTea.ProtonNetCommon.IMemoryBuffer.Write | ( | byte[] | buffer, |
| int | position, | ||
| int | length ) |
Writes a portion of a byte array to the buffer.
Implemented in XmobiTea.ProtonNetCommon.MemoryBuffer.
| int XmobiTea.ProtonNetCommon.IMemoryBuffer.Write | ( | string | text | ) |
Writes a string to the buffer.
Implemented in XmobiTea.ProtonNetCommon.MemoryBuffer.
|
get |
Gets the byte array buffer.
Implemented in XmobiTea.ProtonNetCommon.MemoryBuffer.
|
get |
Gets the capacity of the buffer.
Implemented in XmobiTea.ProtonNetCommon.MemoryBuffer.
|
get |
Gets the current length of the buffer.
Implemented in XmobiTea.ProtonNetCommon.MemoryBuffer.
|
get |
Gets the current position in the buffer.
Implemented in XmobiTea.ProtonNetCommon.MemoryBuffer.
|
get |
Gets the byte at the specified index.
Implemented in XmobiTea.ProtonNetCommon.MemoryBuffer.