FMLiveSwitchDataBufferPoolTracer Class Reference

A data buffer pool tracer. More...

Instance Methods

(instancetype) - initWithTag:pool:
 Initializes a new instance of the FMLiveSwitchDataBufferPoolTracer class. More...
 
(FMLiveSwitchDataBufferPool *) - pool
 Gets the underlying pool. More...
 
(long long) - pooledBytesAvailable
 Gets the total bytes available in the pool. More...
 
(void) - releasePools
 Release the pools. More...
 
(FMLiveSwitchPoolStatistics *) - statistics
 Gets the traced usage statistics. More...
 
(NSString *) - tag
 Gets the tag that identifies requests to the underlying pool. More...
 
(FMLiveSwitchDataBuffer *) - takeWithSize:
 Takes a buffer from the pool. More...
 
(FMLiveSwitchDataBuffer *) - takeWithSize:littleEndian:
 Takes a buffer from the pool. More...
 
(FMLiveSwitchDataBuffer *) - takeWithSize:littleEndian:clearBytes:
 Takes a buffer from the pool. More...
 

Class Methods

(FMLiveSwitchDataBufferPoolTracer *) + dataBufferPoolTracerWithTag:pool:
 Initializes a new instance of the FMLiveSwitchDataBufferPoolTracer class. More...
 

Detailed Description

A data buffer pool tracer.

Method Documentation

◆ dataBufferPoolTracerWithTag:pool:

+ (FMLiveSwitchDataBufferPoolTracer*) dataBufferPoolTracerWithTag: (NSString *)  tag
pool: (FMLiveSwitchDataBufferPool *)  pool 

Initializes a new instance of the FMLiveSwitchDataBufferPoolTracer class.

◆ initWithTag:pool:

- (instancetype) initWithTag: (NSString *)  tag
pool: (FMLiveSwitchDataBufferPool *)  pool 

Initializes a new instance of the FMLiveSwitchDataBufferPoolTracer class.

◆ pool

Gets the underlying pool.

◆ pooledBytesAvailable

- (long long) pooledBytesAvailable

Gets the total bytes available in the pool.

Reimplemented from <FMLiveSwitchIDataBufferPool>.

◆ releasePools

- (void) releasePools

Release the pools.

Reimplemented from <FMLiveSwitchIDataBufferPool>.

◆ statistics

- (FMLiveSwitchPoolStatistics*) statistics

Gets the traced usage statistics.

◆ tag

- (NSString*) tag

Gets the tag that identifies requests to the underlying pool.

◆ takeWithSize:

- (FMLiveSwitchDataBuffer*) takeWithSize: (int)  size

Takes a buffer from the pool.

Parameters
sizeThe number of bytes needed.

Reimplemented from <FMLiveSwitchIDataBufferPool>.

◆ takeWithSize:littleEndian:

- (FMLiveSwitchDataBuffer*) takeWithSize: (int)  size
littleEndian: (bool)  littleEndian 

Takes a buffer from the pool.

Parameters
sizeThe number of bytes needed.
littleEndianWhether the data buffer should be little-endian.

Reimplemented from <FMLiveSwitchIDataBufferPool>.

◆ takeWithSize:littleEndian:clearBytes:

- (FMLiveSwitchDataBuffer*) takeWithSize: (int)  size
littleEndian: (bool)  littleEndian
clearBytes: (bool)  clearBytes 

Takes a buffer from the pool.

Parameters
sizeThe number of bytes needed.
littleEndianWhether the data buffer should be little-endian.
clearBytesWhether to clear the data buffer.

Reimplemented from <FMLiveSwitchIDataBufferPool>.