<FMLiveSwitchIDataBufferPool> Protocol Reference

A data buffer pool interface. More...

Instance Methods

(long long) - pooledBytesAvailable
 Gets the total bytes available in the pool. More...
 
(void) - releasePools
 Release the pools. 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...
 

Detailed Description

A data buffer pool interface.

Method Documentation

◆ pooledBytesAvailable

- (long long) pooledBytesAvailable

Gets the total bytes available in the pool.

Reimplemented in FMLiveSwitchDataBufferPoolTracer, and FMLiveSwitchDataBufferPool.

◆ releasePools

- (void) releasePools

Release the pools.

Reimplemented in FMLiveSwitchDataBufferPoolTracer, and FMLiveSwitchDataBufferPool.

◆ takeWithSize:

- (FMLiveSwitchDataBuffer*) takeWithSize: (int)  size

Takes a buffer from the pool.

Parameters
sizeThe number of bytes needed.

Reimplemented in FMLiveSwitchDataBufferPoolTracer, and FMLiveSwitchDataBufferPool.

◆ 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 in FMLiveSwitchDataBufferPoolTracer, and FMLiveSwitchDataBufferPool.

◆ 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 in FMLiveSwitchDataBufferPoolTracer, and FMLiveSwitchDataBufferPool.