zena:byte-array

zena
import {…} from 'zena:byte-array';

Functions

newByteArray

zena
function newByteArray(size: i32): ByteArray

Create a new ByteArray of the specified size, filled with zeros.

copyBytes

zena
function copyBytes(dest: ByteArray, destOffset: i32, src: ByteArray, srcOffset: i32, length: i32): void

Copy bytes from source to destination.

dest

Destination array

destOffset

Starting index in destination

src

Source array

srcOffset

Starting index in source

length

Number of bytes to copy