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
ファイルを表示 Open project: paulbartrum/jurassic Class Usage Examples

Private Properties

Property Type Description
ArrayBufferInstance System
CreatePrototype ObjectInstance
GetDeclarativeProperties List
Slice ArrayBufferInstance
Slice ArrayBufferInstance
__GETTER__ByteLength object
__STUB__Slice object

Public Methods

Method Description
ArrayBufferInstance ( ObjectInstance prototype, int size ) : System

Creates a new ArrayBuffer instance.

ToArray ( ) : byte[]

Returns a copy of the buffer data.

Private Methods

Method 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 method

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.
return System

ToArray() public method

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