Aliased

class Aliased(val parent: BufferHandle, val byteOffset: Long, val sizeInBytes: Long) : BufferHandle(source)

A slice/view into another BufferHandle. Shares the parent's backing memory. Mutations (if the parent is mutable) are visible to both.

Constructors

Link copied to clipboard
constructor(parent: BufferHandle, byteOffset: Long, sizeInBytes: Long)

Properties

Link copied to clipboard
Link copied to clipboard
open override val isMutable: Boolean

Whether this handle permits writing into the buffer.

Link copied to clipboard
open override val ownership: Ownership

Ownership classification for diagnostics.

Link copied to clipboard
Link copied to clipboard
open override val sizeInBytes: Long

Total size in bytes of the accessible region.