Table of Contents

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

allocator CFAllocator

Allocator.

capacity int

Capacity.

CFMutableData(int)

Initialize new CFMutableData instance.

public CFMutableData(int capacity)

Parameters

capacity int

Capacity.

Properties

Length

Get or set length of data in bytes.

public long Length { get; set; }

Property Value

long

Methods

Append(byte[])

Append data to instance.

public void Append(byte[] data)

Parameters

data byte[]

Data to append.

Append(byte[], int, int)

Append data to instance.

public void Append(byte[] data, int offset, int size)

Parameters

data byte[]

Data to append.

offset int

Offset to first byte in data to append.

size int

Number of bytes to append.

Append(ReadOnlySpan<byte>)

Append data to instance.

public void Append(ReadOnlySpan<byte> data)

Parameters

data ReadOnlySpan<byte>

Data to append.

Append(Span<byte>)

Append data to instance.

public void Append(Span<byte> data)

Parameters

data Span<byte>

Data to append.

AsSpan()

Get Span<T> to access data.

public Span<byte> AsSpan()

Returns

Span<byte>

Span<T>.

AsSpan(long)

Get Span<T> to access data.

public Span<byte> AsSpan(long offset)

Parameters

offset long

Offset to first byte to access.

Returns

Span<byte>

Span<T>.

AsSpan(long, int)

Get Span<T> to access data.

public Span<byte> AsSpan(long offset, int size)

Parameters

offset long

Offset to first byte to access.

size int

Size in bytes to access.

Returns

Span<byte>

Span<T>.