copyPlanesInto

expect fun copyPlanesInto(destination: ByteArray): Int

Copies the same bytes as copyPlanesToByteArray into destination, from index 0, and leaves the rest of destination as it was. A converter that keeps one array for every frame of a stream allocates nothing per frame. Size the array with planesByteCount.

Return

the number of bytes written, 0 for a frame that carries no data

Throws

if destination is shorter than planesByteCount, or if the copy fails

actual fun copyPlanesInto(destination: ByteArray): Int

Copies the same bytes as copyPlanesToByteArray into destination, from index 0, and leaves the rest of destination as it was. A converter that keeps one array for every frame of a stream allocates nothing per frame. Size the array with planesByteCount.

Return

the number of bytes written, 0 for a frame that carries no data

Throws

if destination is shorter than planesByteCount, or if the copy fails

actual fun copyPlanesInto(destination: ByteArray): Int

Copies the same bytes as copyPlanesToByteArray into destination, from index 0, and leaves the rest of destination as it was. A converter that keeps one array for every frame of a stream allocates nothing per frame. Size the array with planesByteCount.

Return

the number of bytes written, 0 for a frame that carries no data

Throws

if destination is shorter than planesByteCount, or if the copy fails

actual fun copyPlanesInto(destination: ByteArray): Int

Copies the same bytes as copyPlanesToByteArray into destination, from index 0, and leaves the rest of destination as it was. A converter that keeps one array for every frame of a stream allocates nothing per frame. Size the array with planesByteCount.

Return

the number of bytes written, 0 for a frame that carries no data

Throws

if destination is shorter than planesByteCount, or if the copy fails

actual fun copyPlanesInto(destination: ByteArray): Int

Copies the same bytes as copyPlanesToByteArray into destination, from index 0, and leaves the rest of destination as it was. A converter that keeps one array for every frame of a stream allocates nothing per frame. Size the array with planesByteCount.

Return

the number of bytes written, 0 for a frame that carries no data

Throws

if destination is shorter than planesByteCount, or if the copy fails