Свойство | Type | Description | |
---|---|---|---|
BytesToAllocPerEventArg | int |
Свойство | Type | Description | |
---|---|---|---|
Buffer | byte[] | ||
FreeBufferSpace | ConcurrentStack |
Méthode | Description | |
---|---|---|
AssignBuffer ( |
Assigns a buffer space from the buffer block to the specified SocketAsyncEventArgs object.
|
|
BufferManager ( int NumEventArgs, int BytesToAllocPerEventArg ) : System |
Creates a new instance of BufferManager
|
|
Dispose ( ) : void |
Releases all bytes held by this buffer
|
|
ReleaseBuffer ( |
Releases Buffer space assigned to a token so that it can be assingned to a new SAEA
|
Méthode | Description | |
---|---|---|
CheckDisposed ( ) : void |
If Dispose() has been called on this object, an ObjectDisposedException will be thrown here
|
public AssignBuffer ( |
||
args | The SocketEventArgs object to assign a buffer space to | |
Résultat | bool |
public BufferManager ( int NumEventArgs, int BytesToAllocPerEventArg ) : System | ||
NumEventArgs | int | Specifies the maximum number of SocketAsyncEventArgs objects that will be assigned buffer space at once |
BytesToAllocPerEventArg | int | Specifies the number of bytes each SocketAsyncEventArgs object will be allocated from the buffer |
Résultat | System |
public ReleaseBuffer ( |
||
args | The SocketEventArgs object that we are releasing buffer space from | |
Résultat | void |