Three.V8

3D rendering engine using JavaScript as user script.

View on GitHub

<–Home

class Text

Provides a few interfaces for text conversion.

No constructor, exposed as a global object text.

class Text

Name Description
Methods  
toUTF8Buffer() Convert string to ArrayBuffer of utf8 code.
fromUTF8Buffer() Convert ArrayBuffer of utf8 code to string.

Methods

toUTF8Buffer()

.toUTF8Buffer(text: String): ArrayBuffer

Convert string to ArrayBuffer of utf8 code.

fromUTF8Buffer()

.fromUTF8Buffer(buf: ArrayBuffer): String

Convert ArrayBuffer of utf8 code to string.