C# Class Jurassic.Library.ArrayBufferInstance

The ArrayBuffer object is used to represent a generic, fixed-length raw binary data buffer. You can not directly manipulate the contents of an ArrayBuffer; instead, you create one of the typed array objects or a DataView object which represents the buffer in a specific format, and use that to read and write the contents of the buffer.
Inheritance: ObjectInstance
Afficher le fichier Open project: paulbartrum/jurassic Class Usage Examples

Private Properties

Свойство Type Description
ArrayBufferInstance System
CreatePrototype ObjectInstance
GetDeclarativeProperties List
Slice ArrayBufferInstance
Slice ArrayBufferInstance
__GETTER__ByteLength object
__STUB__Slice object

Méthodes publiques

Méthode Description
ArrayBufferInstance ( ObjectInstance prototype, int size ) : System

Creates a new ArrayBuffer instance.

ToArray ( ) : byte[]

Returns a copy of the buffer data.

Private Methods

Méthode Description
ArrayBufferInstance ( ObjectInstance prototype, byte buffer ) : System

Creates a new ArrayBuffer instance from an existing buffer.

CreatePrototype ( ScriptEngine engine, ArrayBufferConstructor constructor ) : ObjectInstance

Creates the ArrayBuffer prototype object.

GetDeclarativeProperties ( ScriptEngine engine ) : List
Slice ( int begin ) : ArrayBufferInstance
Slice ( int begin, int end ) : ArrayBufferInstance
__GETTER__ByteLength ( ScriptEngine engine, object thisObj, object args ) : object
__STUB__Slice ( ScriptEngine engine, object thisObj, object args ) : object

Method Details

ArrayBufferInstance() public méthode

Creates a new ArrayBuffer instance.
public ArrayBufferInstance ( ObjectInstance prototype, int size ) : System
prototype ObjectInstance The next object in the prototype chain.
size int The size, in bytes, of the array buffer to create.
Résultat System

ToArray() public méthode

Returns a copy of the buffer data.
public ToArray ( ) : byte[]
Résultat byte[]