Class CFMutableData
- Namespace
- CarinaStudio.MacOS.CoreFoundation
- Assembly
- CarinaStudio.AppBase.MacOS.dll
CFMutableData.
public class CFMutableData : CFData, IShareableDisposable<CFObject>, IDisposable
- Inheritance
-
CFMutableData
- Implements
- Inherited Members
- Extension Methods
Constructors
CFMutableData(CFAllocator, int)
Initialize new CFMutableData instance.
public CFMutableData(CFAllocator allocator, int capacity)
Parameters
allocatorCFAllocatorAllocator.
capacityintCapacity.
CFMutableData(int)
Initialize new CFMutableData instance.
public CFMutableData(int capacity)
Parameters
capacityintCapacity.
Properties
Length
Get or set length of data in bytes.
public long Length { get; set; }
Property Value
Methods
Append(byte[])
Append data to instance.
public void Append(byte[] data)
Parameters
databyte[]Data to append.
Append(byte[], int, int)
Append data to instance.
public void Append(byte[] data, int offset, int size)
Parameters
databyte[]Data to append.
offsetintOffset to first byte in
datato append.sizeintNumber of bytes to append.
Append(ReadOnlySpan<byte>)
Append data to instance.
public void Append(ReadOnlySpan<byte> data)
Parameters
dataReadOnlySpan<byte>Data to append.
Append(Span<byte>)
Append data to instance.
public void Append(Span<byte> data)
Parameters
AsSpan()
Get Span<T> to access data.
public Span<byte> AsSpan()
Returns
AsSpan(long)
Get Span<T> to access data.
public Span<byte> AsSpan(long offset)
Parameters
offsetlongOffset to first byte to access.
Returns
AsSpan(long, int)
Get Span<T> to access data.
public Span<byte> AsSpan(long offset, int size)