Platforms to show: All Mac Windows Linux Cross-Platform
CFMutableBinaryDataMBS class
Super class: CFBinaryDataMBS
| Type | Topic | Plugin | macOS | Windows | Linux | iOS | Targets |
| class | CoreFoundation | MBS MacCF Plugin | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
If the release property is true, the destructor of this class will release the data reference.
This class works on Windows with QuickTime 7 installed.
Subclass of the CFBinaryDataMBS class.
- 18 methods
- method AppendCFBinaryDataMBS(m as CFBinaryDataMBS)
- method AppendCFBinaryDataMBS(m as CFBinaryDataMBS,len as Integer)
- method AppendMem(m as memoryblock)
- method AppendMem(m as memoryblock,len as Integer)
- method AppendStr(s as string)
- method AppendStr(s as string,len as Integer)
- method Constructor(capacity as Integer)
- method Constructor(data as MemoryBlock)
- method Constructor(data as string)
- method Delete(pos as Integer,len as Integer)
- method IncreaseLength(extralen as Integer)
- method ReplaceCFBinaryDataMBS(m as CFBinaryDataMBS,pos as Integer,len as Integer)
- method ReplaceCFBinaryDataMBS(m as CFBinaryDataMBS,pos as Integer,len as Integer,newlen as Integer)
- method ReplaceMem(m as memoryblock,pos as Integer,len as Integer)
- method ReplaceMem(m as memoryblock,pos as Integer,len as Integer,newlen as Integer)
- method ReplaceStr(s as string,pos as Integer,len as Integer)
- method ReplaceStr(s as string,pos as Integer,len as Integer,newlen as Integer)
- method SetLength(len as Integer)
Super class CFBinaryDataMBS
- 2 properties
- 13 methods
- method base64DecodedData(options as Integer = 0) as CFBinaryDataMBS
- method base64EncodedData(options as Integer = 0) as CFBinaryDataMBS
- method clone as CFBinaryDataMBS
- method compressedDataUsingAlgorithm(algorithm as Integer, byref ErrorCode as Integer, byref ErrorMessage as String) as CFBinaryDataMBS
- method Constructor(data as MemoryBlock)
- method Constructor(data as Ptr, Size as Integer)
- method Constructor(data as string)
- method decompressedDataUsingAlgorithm(algorithm as Integer, byref ErrorCode as Integer, byref ErrorMessage as String) as CFBinaryDataMBS
- method Edit as CFMutableBinaryDataMBS
- method Mem as Memoryblock
- method Mem(pos as Integer,len as Integer) as Memoryblock
- method Str as String
- method Str(pos as Integer,len as Integer) as String
- 9 constants
Base64 options
| Constant | Value | Description |
|---|---|---|
| Base64DecodingIgnoreUnknownCharacters | 1 |
Use the following option to modify the decoding algorithm so that it ignores unknown non-Base64 bytes, including line ending characters. |
| Base64Encoding64CharacterLineLength | 1 |
Line length limit should be 64. |
| Base64Encoding76CharacterLineLength | 2 |
Line length limit should be 76. |
| Base64EncodingEndLineWithCarriageReturn | 16 |
use CR as line ending instead of CRLF. |
| Base64EncodingEndLineWithLineFeed | 32 |
use LF as line ending instead of CRLF. |
Compression Algorithm
| Constant | Value | Description |
|---|---|---|
| CompressionAlgorithmLZ4 | 1 | LZ4 is appropriate if compression speed is critical. LZ4 generally sacrifices compression ratio in order to achieve its greater speed. more |
| CompressionAlgorithmLZFSE | 0 |
LZFSE is the recommended compression algorithm if you don't have a specific reason to use another algorithm. Note that LZFSE is intended for use with Apple devices only. This algorithm generally compresses better than Zlib, but not as well as LZMA. It is generally slower than LZ4. |
| CompressionAlgorithmLZMA | 2 | LZMA is appropriate if compression ratio is critical and memory usage and compression speed are not a factor. LZMA is an order of magnitude slower for both compression and decompression than other algorithms. It can also use a very large amount of memory, so if you need to compress large amounts of data on embedded devices with limited memory you should probably avoid LZMA. more |
| CompressionAlgorithmZlib | 3 | Zlib is appropriate if you want a good balance between compression speed and compression ratio, but only if you need interoperability with non-Apple platforms. Otherwise, LZFSE is generally a better choice than Zlib. more |
Super class CFObjectMBS
- 5 properties
- property Handle as Integer
- property Hash as Integer
- property Lasterror as Integer
- property Type as Integer
- property TypeDescription as String
- 9 methods
- method close
- method DeepCopy as CFObjectMBS
- method EncodedData as MemoryBlock
- method Equal(o as CFObjectMBS) as boolean
- method ReleaseObject
- method RetainCount as Integer
- method RetainObject
- method XML as CFBinaryDataMBS
- method XMLdata as String
- shared method NewCFObject(handle as Integer) as CFObjectMBS
This class has no sub classes.
Blog Entries
Some useful global functions for this class:
- NewCFMutableBinaryDataMBSMem(len as Integer) as CFMutableBinaryDataMBS
Some methods using this class:
- CFBinaryDataMBS.Edit as CFMutableBinaryDataMBS
Some related classes:
The items on this page are in the following plugins: MBS MacCF Plugin.
CFMutableBagMBS - CFMutableCharacterSetMBS