Companion

actual object Companion(source)
expect object Companion(source)
actual object Companion(source)

Properties

Link copied to clipboard
actual val MAX_LENGTH: Number

The maximum allowable length for a Node.js Buffer.

expect val MAX_LENGTH: Number

The maximum allowable length for a Node.js Buffer.

actual val MAX_LENGTH: Number

The maximum allowable length for a Node.js Buffer.

Functions

Link copied to clipboard
actual fun alloc(size: Number): Buffer

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

expect fun alloc(size: Number): Buffer

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

actual fun alloc(size: Number): Buffer

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

Link copied to clipboard
fun wrap(buffer: dynamic): Buffer

Wraps the dynamic object in the Buffer value class.

fun wrap(buffer: JsAny): Buffer

Wraps the dynamic object in the Buffer value class.