/ fm / liveswitch / DataBufferPoolTracer
Class: DataBufferPoolTracer
fm.liveswitch.DataBufferPoolTracer
A data buffer pool tracer.
Implements
Table of contents
Constructors
Methods
Constructors
constructor
+ new DataBufferPoolTracer(tag
: string, pool
: DataBufferPool): DataBufferPoolTracer
Initializes a new instance of the [[fm.liveswitch.dataBufferPoolTracer]] class.
Parameters:
Name | Type |
---|---|
tag |
string |
pool |
DataBufferPool |
Returns: DataBufferPoolTracer
Defined in: Generated/TypeScript/fm.liveswitch/DataBufferPoolTracer.ts:15
Methods
getPool
▸ getPool(): DataBufferPool
Gets the underlying pool.
Returns: DataBufferPool
Defined in: Generated/TypeScript/fm.liveswitch/DataBufferPoolTracer.ts:48
getPooledBytesAvailable
▸ getPooledBytesAvailable(): number
Gets the total bytes available in the pool.
Returns: number
Implementation of: IDataBufferPool
Defined in: Generated/TypeScript/fm.liveswitch/DataBufferPoolTracer.ts:60
getStatistics
▸ getStatistics(): PoolStatistics
Gets the traced usage statistics.
Returns: PoolStatistics
Defined in: Generated/TypeScript/fm.liveswitch/DataBufferPoolTracer.ts:72
getTag
▸ getTag(): string
Gets the tag that identifies requests to the underlying pool.
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/DataBufferPoolTracer.ts:84
getTypeString
▸ getTypeString(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/DataBufferPoolTracer.ts:9
releasePools
▸ releasePools(): void
Release the pools.
Returns: void
Implementation of: IDataBufferPool
Defined in: Generated/TypeScript/fm.liveswitch/DataBufferPoolTracer.ts:96
take
▸ take(size
: number): DataBuffer
Takes a buffer from the pool.
Parameters:
Name | Type | Description |
---|---|---|
size |
number | The number of bytes needed. |
Returns: DataBuffer
Implementation of: IDataBufferPool
Defined in: Generated/TypeScript/fm.liveswitch/DataBufferPoolTracer.ts:125
▸ take(size
: number, littleEndian
: boolean): DataBuffer
Takes a buffer from the pool.
Parameters:
Name | Type | Description |
---|---|---|
size |
number | The number of bytes needed. |
littleEndian |
boolean | Whether the data buffer should be little-endian. |
Returns: DataBuffer
Implementation of: IDataBufferPool
Defined in: Generated/TypeScript/fm.liveswitch/DataBufferPoolTracer.ts:133
▸ take(size
: number, littleEndian
: boolean, clearBytes
: boolean): DataBuffer
Takes a buffer from the pool.
Parameters:
Name | Type | Description |
---|---|---|
size |
number | The number of bytes needed. |
littleEndian |
boolean | Whether the data buffer should be little-endian. |
clearBytes |
boolean | Whether to clear the data buffer. |
Returns: DataBuffer
Implementation of: IDataBufferPool
Defined in: Generated/TypeScript/fm.liveswitch/DataBufferPoolTracer.ts:142