FMIceLinkDataBufferPool Class Reference
Inherits from | NSObject |
---|---|
Declared in | FMIceLinkDataBufferPool.h FMIceLinkDataBufferPool.m |
+ dataBufferPool
Initializes a new [instance](#//api/name/instance) of the FMIceLinkDataBufferPool class.
+ (FMIceLinkDataBufferPool *)dataBufferPool
Discussion
Initializes a new [instance](#//api/name/instance) of the FMIceLinkDataBufferPool class.
Declared In
FMIceLinkDataBufferPool.h
– disabled
Gets whether the pool is disabled.
If disabled, each call to take a buffer
will result in a new allocation.
- (bool)disabled
Discussion
Gets whether the pool is disabled.
If disabled, each call to take a buffer
will result in a new allocation.
Declared In
FMIceLinkDataBufferPool.h
– enableStatistics
Gets whether to enable [statistics](#//api/name/statistics).
- (bool)enableStatistics
Discussion
Gets whether to enable [statistics](#//api/name/statistics).
Declared In
FMIceLinkDataBufferPool.h
– init
Initializes a new [instance](#//api/name/instance) of the FMIceLinkDataBufferPool class.
- (instancetype)init
Discussion
Initializes a new [instance](#//api/name/instance) of the FMIceLinkDataBufferPool class.
Declared In
FMIceLinkDataBufferPool.h
+ instance
Gets the singleton instance.
+ (FMIceLinkDataBufferPool *)instance
Discussion
Gets the singleton instance.
Declared In
FMIceLinkDataBufferPool.h
– setDisabled:
Sets whether the pool is [disabled](#//api/name/disabled).
If [disabled](#//api/name/disabled), each call to take a buffer
will result in a new allocation.
- (void)setDisabled:(bool)value
Discussion
Sets whether the pool is [disabled](#//api/name/disabled).
If [disabled](#//api/name/disabled), each call to take a buffer
will result in a new allocation.
Declared In
FMIceLinkDataBufferPool.h
– setEnableStatistics:
Sets whether to enable [statistics](#//api/name/statistics).
- (void)setEnableStatistics:(bool)value
Discussion
Sets whether to enable [statistics](#//api/name/statistics).
Declared In
FMIceLinkDataBufferPool.h
– statistics
Gets the pool usage statistics.
- (FMIceLinkPoolStatistics *)statistics
Discussion
Gets the pool usage statistics.
Declared In
FMIceLinkDataBufferPool.h
– takeWithSize:
Takes a buffer from the pool.
- (FMIceLinkDataBuffer *)takeWithSize:(int)size
Parameters
size |
The number of bytes needed. |
---|
Discussion
Takes a buffer from the pool.
Declared In
FMIceLinkDataBufferPool.h
– takeWithSize:littleEndian:
Takes a buffer from the pool.
- (FMIceLinkDataBuffer *)takeWithSize:(int)size littleEndian:(bool)littleEndian
Parameters
size |
The number of bytes needed. |
---|---|
littleEndian |
Whether the data buffer should be little-endian. |
Discussion
Takes a buffer from the pool.
Declared In
FMIceLinkDataBufferPool.h
– takeWithSize:littleEndian:clearBytes:
Takes a buffer from the pool.
- (FMIceLinkDataBuffer *)takeWithSize:(int)size littleEndian:(bool)littleEndian clearBytes:(bool)clearBytes
Parameters
size |
The number of bytes needed. |
---|---|
littleEndian |
Whether the data buffer should be little-endian. |
clearBytes |
Whether to clear the data buffer. |
Discussion
Takes a buffer from the pool.
Declared In
FMIceLinkDataBufferPool.h