Class: StringBuffer

StringBuffer()

A styped array representing a string.

Constructor

new StringBuffer()

Source:

Methods

(static) fromAddress(memoryManager, address, finalize) → {StringBuffer}

Create a string buffer from an address.

Parameters:
Name Type Description
memoryManager MemoryManager

The memory manager

address number

The address of the string

finalize boolean

If true register the string buffer for finalization.

Source:
Returns:

The created string buffer.

Type
StringBuffer

(static) fromString(memoryManager, string, finalize) → {StringBuffer}

Create a string buffer from a string.

Parameters:
Name Type Description
memoryManager MemoryManager

The memory manager

string string

The string to encode

finalize boolean

If true free the memory through finalization.

Source:
Returns:

The created string buffer.

Type
StringBuffer

toString() → {string}

Decode the string buffer to a string

Source:
Returns:
Type
string