A data buffer pool. More...
Instance Methods | |
| (int) | - blockSize |
| Gets the block size. More... | |
| (bool) | - disabled |
| Gets whether the pool is disabled. More... | |
| (bool) | - enableStatistics |
| Gets whether to enable statistics. More... | |
| (FMLiveSwitchPoolStatistics *) | - getTraceStatisticsWithTag: |
| Gets pool usage statistics for a specific tag. More... | |
| (FMLiveSwitchPoolStatistics *) | - getTraceStatisticsWithType: |
| Gets pool usage statistics for a specific tag. More... | |
| (instancetype) | - init |
| Initializes a new instance of the FMLiveSwitchDataBufferPool class. More... | |
| (instancetype) | - initWithTag: |
| Initializes a new instance of the FMLiveSwitchDataBufferPool class. More... | |
| (long long) | - pooledBytesAvailable |
| Gets the total bytes available in the pool. More... | |
| (void) | - releasePools |
| Release the pools. More... | |
| (void) | - setDisabled: |
| Sets whether the pool is disabled. More... | |
| (void) | - setEnableStatistics: |
| Sets whether to enable statistics. More... | |
| (FMLiveSwitchPoolStatistics *) | - statistics |
| Gets the pool usage statistics. 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... | |
| (NSMutableArray *) | - traceStatistics |
| Gets all tagged pool usage statistics. More... | |
Class Methods | |
| (FMLiveSwitchDataBufferPool *) | + dataBufferPool |
| Initializes a new instance of the FMLiveSwitchDataBufferPool class. More... | |
| (FMLiveSwitchDataBufferPool *) | + dataBufferPoolWithTag: |
| Initializes a new instance of the FMLiveSwitchDataBufferPool class. More... | |
| (FMLiveSwitchDataBufferPoolTracer *) | + getTracerWithTag: |
| Get a data buffer pool tracer for a specific tag using the default pool. More... | |
| (FMLiveSwitchDataBufferPoolTracer *) | + getTracerWithTag:pool: |
| Get a data buffer pool tracer for a specific tag and pool. More... | |
| (FMLiveSwitchDataBufferPoolTracer *) | + getTracerWithType: |
| Get a data buffer pool tracer for a specific tag using the default pool. More... | |
| (FMLiveSwitchDataBufferPoolTracer *) | + getTracerWithType:pool: |
| Get a data buffer pool tracer for a specific tag and pool. More... | |
| (FMLiveSwitchDataBufferPool *) | + instance |
| Gets the singleton instance. More... | |
| (bool) | + isSupported |
| Gets a value indicating whether DataBuffer pooling is supported on this platform. More... | |
A data buffer pool.
| - (int) blockSize |
Gets the block size.
| + (FMLiveSwitchDataBufferPool*) dataBufferPool |
Initializes a new instance of the FMLiveSwitchDataBufferPool class.
| + (FMLiveSwitchDataBufferPool*) dataBufferPoolWithTag: | (NSString *) | tag |
Initializes a new instance of the FMLiveSwitchDataBufferPool class.
| tag | The tag for stats output. |
| - (bool) disabled |
Gets whether the pool is disabled.
If disabled, each call to take a buffer will result in a new allocation.
| - (bool) enableStatistics |
Gets whether to enable statistics.
| + (FMLiveSwitchDataBufferPoolTracer*) getTracerWithTag: | (NSString *) | tag |
Get a data buffer pool tracer for a specific tag using the default pool.
| tag | The tag to log to. |
| + (FMLiveSwitchDataBufferPoolTracer*) getTracerWithTag: | (NSString *) | tag | |
| pool: | (FMLiveSwitchDataBufferPool *) | pool | |
Get a data buffer pool tracer for a specific tag and pool.
| tag | The tag to log to. |
| pool | The underlying pool. |
| + (FMLiveSwitchDataBufferPoolTracer*) getTracerWithType: | (Class) | type |
Get a data buffer pool tracer for a specific tag using the default pool.
The tag is taken from the class namespace and name.
| type | The type to use as the tag. |
| + (FMLiveSwitchDataBufferPoolTracer*) getTracerWithType: | (Class) | type | |
| pool: | (FMLiveSwitchDataBufferPool *) | pool | |
Get a data buffer pool tracer for a specific tag and pool.
The tag is taken from the class namespace and name.
| type | The type to use as the tag. |
| pool | The underlying pool. |
| - (FMLiveSwitchPoolStatistics*) getTraceStatisticsWithTag: | (NSString *) | tag |
Gets pool usage statistics for a specific tag.
| tag | The tag. |
| - (FMLiveSwitchPoolStatistics*) getTraceStatisticsWithType: | (Class) | type |
Gets pool usage statistics for a specific tag.
| type | The type to use as the tag. |
| - (instancetype) init |
Initializes a new instance of the FMLiveSwitchDataBufferPool class.
| - (instancetype) initWithTag: | (NSString *) | tag |
Initializes a new instance of the FMLiveSwitchDataBufferPool class.
| tag | The tag for stats output. |
| + (FMLiveSwitchDataBufferPool*) instance |
Gets the singleton instance.
| + (bool) isSupported |
Gets a value indicating whether DataBuffer pooling is supported on this platform.
| - (long long) pooledBytesAvailable |
Gets the total bytes available in the pool.
Reimplemented from <FMLiveSwitchIDataBufferPool>.
| - (void) releasePools |
Release the pools.
Reimplemented from <FMLiveSwitchIDataBufferPool>.
| - (void) setDisabled: | (bool) | value |
Sets whether the pool is disabled.
If disabled, each call to take a buffer will result in a new allocation.
| - (void) setEnableStatistics: | (bool) | value |
Sets whether to enable statistics.
| - (FMLiveSwitchPoolStatistics*) statistics |
Gets the pool usage statistics.
| - (FMLiveSwitchDataBuffer*) takeWithSize: | (int) | size |
Takes a buffer from the pool.
| size | The number of bytes needed. |
Reimplemented from <FMLiveSwitchIDataBufferPool>.
| - (FMLiveSwitchDataBuffer*) takeWithSize: | (int) | size | |
| littleEndian: | (bool) | littleEndian | |
Takes a buffer from the pool.
| size | The number of bytes needed. |
| littleEndian | Whether the data buffer should be little-endian. |
Reimplemented from <FMLiveSwitchIDataBufferPool>.
| - (FMLiveSwitchDataBuffer*) takeWithSize: | (int) | size | |
| littleEndian: | (bool) | littleEndian | |
| clearBytes: | (bool) | clearBytes | |
Takes a buffer from the pool.
| size | The number of bytes needed. |
| littleEndian | Whether the data buffer should be little-endian. |
| clearBytes | Whether to clear the data buffer. |
Reimplemented from <FMLiveSwitchIDataBufferPool>.
| - (NSMutableArray*) traceStatistics |
Gets all tagged pool usage statistics.