Table of Contents

Class VersatileBufferAllocatorParameters

Namespace
VAST.Common
Assembly
VAST.Common.dll

Represents configuration parameters for a VersatileBufferAllocator.

public class VersatileBufferAllocatorParameters
Inheritance
VersatileBufferAllocatorParameters
Inherited Members

Constructors

VersatileBufferAllocatorParameters()

public VersatileBufferAllocatorParameters()

Properties

IsAutoMode

Gets or sets a value indicating whether the allocator operates in fully automated mode.

public bool IsAutoMode { get; set; }

Property Value

bool

Remarks

When true, the allocator automatically manages buffer allocation and the user does not need to worry about exhaustion, though memory usage may not be optimal for environments with specific memory constraints. When false, the allocator uses user-specified settings for fine-tuned control.

MaxGrowth

Gets or sets the maximum growth factor for the number of buffers.

public float MaxGrowth { get; set; }

Property Value

float

Remarks

This property is only used when IsAutoMode is false; otherwise, it is ignored.

UseDirectBuffers

Gets or sets a value indicating whether the allocator should use direct ByteBuffers.

public bool UseDirectBuffers { get; set; }

Property Value

bool

Remarks

This property is only applicable on Android.

UsePlatformSpecificAllocation

Gets or sets a value indicating whether the allocator should use platform-specific allocations instead of byte arrays.

public bool UsePlatformSpecificAllocation { get; set; }

Property Value

bool

Remarks

For example, Android can use ByteBuffer-based buffers for better performance in some cases.