alloc

actual fun alloc(size: Number): Buffer(source)

Allocates a new Node.js Buffer of the provided size, wrapped in the Buffer value class.

Throws

IllegalArgumentException

If size is inappropriate.

UnsupportedOperationException

If Node.js is not being used.

expect fun alloc(size: Number): Buffer(source)

Allocates a new Node.js Buffer of the provided size, wrapped in the Buffer value class.

Throws

IllegalArgumentException

If size is inappropriate.

UnsupportedOperationException

If Node.js is not being used.

actual fun alloc(size: Number): Buffer(source)

Allocates a new Node.js Buffer of the provided size, wrapped in the Buffer value class.

Throws

IllegalArgumentException

If size is inappropriate.

UnsupportedOperationException

If Node.js is not being used.