Skip to content

TextStudio3DWritableBuffer<T>

ClassTextStudio.ThreeDTextStudio.3D
public sealed class TextStudio3DWritableBuffer<T>

Retained writable scratch storage owned by one module context. Request the same element type and slot on later builds to reuse capacity without managed allocation.

public void SetCount(int count)

Sets the logical element count and grows retained storage when needed without shrinking existing capacity.

Parameters

Name Type
count System.Int32
public void Clear()

Clears references in the active range and resets the logical count while retaining capacity for reuse.

public TextStudio3DWritableBuffer()

public int Count { get; }

Returns

System.Int32

public int Capacity { get; }

Returns

System.Int32

public T this[int index] { get; set; }

Parameters

Name Type
index System.Int32

Returns

{T}