Skip to main content

$bufferCreate

Creates a new Buffer instance from the provided content and sets it to a variable.

Parameters

ParameterDescription
nameThe name of the variable to set the buffer
contentThe content to create the buffer from

Example

<AoiClient>.addCommand({
name: "create-buffer-from-content",
code: `
$bufferCreate[myBuffer; Hello, world!]
`,
});