FromZone

value class FromZone(val zone: AllocationZone = AllocationZone.Direct) : BufferAllocator

Allocate buffers from a specific memory zone. Use Direct for I/O operations, Heap for compute-heavy operations.

Constructors

Link copied to clipboard
constructor(zone: AllocationZone = AllocationZone.Direct)

Properties

Link copied to clipboard
val zone: AllocationZone

Functions

Link copied to clipboard
open override fun allocate(size: Int): ReadWriteBuffer

Allocates a buffer of the specified size.