Core Plot (macOS)
Cocoa plotting framework for macOS, iOS, and tvOS
|
Type conversion methods for CPTNumericData. More...
#import <CPTNumericData+TypeConversion.h>
Public Instance Methods | |
Type Conversion | |
(nonnull CPTNumericData *) | - dataByConvertingToDataType: |
Copies the current numeric data and converts the data to a new data type. More... | |
(nonnull CPTNumericData *) | - dataByConvertingToType:sampleBytes:byteOrder: |
Copies the current numeric data and converts the data to a new data type. More... | |
Data Conversion Utilities | |
(void) | - convertData:dataType:toData:dataType: |
Copies a data buffer and converts the data to a new data type without changing the byte order. More... | |
(void) | - swapByteOrderForData:sampleSize: |
Swaps the byte order for each sample stored in a data buffer. More... | |
Type conversion methods for CPTNumericData.
- (void) convertData: | (nonnull NSData *) | sourceData | |
dataType: | (nonnull CPTNumericDataType *) | sourceDataType | |
toData: | (nonnull NSMutableData *) | destData | |
dataType: | (nonnull CPTNumericDataType *) | destDataType | |
Copies a data buffer and converts the data to a new data type without changing the byte order.
The data is assumed to be in host byte order and no byte order conversion is performed.
sourceData | The source data buffer. |
sourceDataType | The data type of the source. |
destData | The destination data buffer. |
destDataType | The new data type. |
Extends class CPTNumericData.
- (nonnull CPTNumericData *) dataByConvertingToDataType: | (CPTNumericDataType) | newDataType |
Copies the current numeric data and converts the data to a new data type.
newDataType | The new data type. |
Extends class CPTNumericData.
- (nonnull CPTNumericData *) dataByConvertingToType: | (CPTDataTypeFormat) | newDataType | |
sampleBytes: | (size_t) | newSampleBytes | |
byteOrder: | (CFByteOrder) | newByteOrder | |
Copies the current numeric data and converts the data to a new data type.
newDataType | The new data type format. |
newSampleBytes | The number of bytes used to store each sample. |
newByteOrder | The new byte order. |
Extends class CPTNumericData.
- (void) swapByteOrderForData: | (nonnull NSMutableData *) | sourceData | |
sampleSize: | (size_t) | sampleSize | |
Swaps the byte order for each sample stored in a data buffer.
sourceData | The data buffer. |
sampleSize | The number of bytes in each sample stored in sourceData. |
Extends class CPTNumericData.