C# Класс 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.
Наследование: ObjectInstance
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
ArrayBufferInstance System
CreatePrototype ObjectInstance
GetDeclarativeProperties List
Slice ArrayBufferInstance
Slice ArrayBufferInstance
__GETTER__ByteLength object
__STUB__Slice object

Открытые методы

Метод Описание
ArrayBufferInstance ( ObjectInstance prototype, int size ) : System

Creates a new ArrayBuffer instance.

ToArray ( ) : byte[]

Returns a copy of the buffer data.

Приватные методы

Метод Описание
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

Описание методов

ArrayBufferInstance() публичный Метод

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.
Результат System

ToArray() публичный Метод

Returns a copy of the buffer data.
public ToArray ( ) : byte[]
Результат byte[]