Class ByteBufferPool
Inheritance
System.Object
ByteBufferPool
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FixAntenna.Common.Pool
Assembly: FixAntenna.Common.dll
Syntax
public class ByteBufferPool
Fields
Default
Declaration
public static int Default
Field Value
Type | Description |
---|---|
System.Int32 |
Methods
Demand(Int32)
Declaration
public virtual ByteBuffer Demand(int capacity)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | capacity |
Returns
Type | Description |
---|---|
ByteBuffer |
DemandAndClean(Int32)
Declaration
public virtual ByteBuffer DemandAndClean(int capacity)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | capacity |
Returns
Type | Description |
---|---|
ByteBuffer |
Instance()
Declaration
public static ByteBufferPool Instance()
Returns
Type | Description |
---|---|
ByteBufferPool |
Release(ByteBuffer)
Declaration
public virtual void Release(ByteBuffer buffer)
Parameters
Type | Name | Description |
---|---|---|
ByteBuffer | buffer |