Owned

class Owned(val data: ByteArray, val offset: Int = 0, val sizeInBytes: Long = (data.size - offset).toLong()) : BufferHandle(source)

Runtime-allocated copy. The runtime owns the underlying memory and is free to mutate or release it.

Constructors

Link copied to clipboard
constructor(data: ByteArray, offset: Int = 0, sizeInBytes: Long = (data.size - offset).toLong())

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
val offset: Int
Link copied to clipboard
open override val ownership: Ownership

Ownership classification for diagnostics.

Link copied to clipboard
open override val sizeInBytes: Long

Total size in bytes of the accessible region.