C# Class Jurassic.Library.DataViewInstance

The DataView view provides a low-level interface for reading and writing multiple number types in an ArrayBuffer irrespective of the platform's endianness.
Inheritance: ObjectInstance
显示文件 Open project: paulbartrum/jurassic Class Usage Examples

Private Properties

Property Type Description
CreatePrototype ObjectInstance
DataViewInstance System
GetDeclarativeProperties List
GetFloat32 double
GetFloat64 double
GetInt16 int
GetInt32 int
GetInt8 int
GetUint16 int
GetUint32 uint
GetUint8 int
SetCore void
SetFloat32 void
SetFloat64 void
SetInt16 void
SetInt32 void
SetInt8 void
SetUint16 void
SetUint32 void
SetUint8 void
__GETTER__Buffer object
__GETTER__ByteLength object
__GETTER__ByteOffset object
__STUB__GetFloat32 object
__STUB__GetFloat64 object
__STUB__GetInt16 object
__STUB__GetInt32 object
__STUB__GetInt8 object
__STUB__GetUint16 object
__STUB__GetUint32 object
__STUB__GetUint8 object
__STUB__SetFloat32 object
__STUB__SetFloat64 object
__STUB__SetInt16 object
__STUB__SetInt32 object
__STUB__SetInt8 object
__STUB__SetUint16 object
__STUB__SetUint32 object
__STUB__SetUint8 object

Public Methods

Method Description
GetInt64 ( int byteOffset, bool littleEndian ) : long

Gets a signed 64-bit integer at the specified byte offset from the start of the DataView.

Private Methods

Method Description
CreatePrototype ( ScriptEngine engine, DataViewConstructor constructor ) : ObjectInstance

Creates the DataView prototype object.

DataViewInstance ( ObjectInstance prototype, ArrayBufferInstance buffer, int byteOffset, int byteLength ) : System

Creates a new DataView instance.

GetDeclarativeProperties ( ScriptEngine engine ) : List
GetFloat32 ( int byteOffset, bool littleEndian ) : double
GetFloat64 ( int byteOffset, bool littleEndian ) : double
GetInt16 ( int byteOffset, bool littleEndian ) : int
GetInt32 ( int byteOffset, bool littleEndian ) : int
GetInt8 ( int byteOffset ) : int
GetUint16 ( int byteOffset, bool littleEndian ) : int
GetUint32 ( int byteOffset, bool littleEndian ) : uint
GetUint8 ( int byteOffset ) : int
SetCore ( int byteOffset, byte bytes, bool littleEndian ) : void

Stores a series of bytes at the specified byte offset from the start of the DataView.

SetFloat32 ( int byteOffset, double value, bool littleEndian ) : void
SetFloat64 ( int byteOffset, double value, bool littleEndian ) : void
SetInt16 ( int byteOffset, object value, bool littleEndian ) : void
SetInt32 ( int byteOffset, object value, bool littleEndian ) : void
SetInt8 ( int byteOffset, object value ) : void
SetUint16 ( int byteOffset, object value, bool littleEndian ) : void
SetUint32 ( int byteOffset, object value, bool littleEndian ) : void
SetUint8 ( int byteOffset, object value ) : void
__GETTER__Buffer ( ScriptEngine engine, object thisObj, object args ) : object
__GETTER__ByteLength ( ScriptEngine engine, object thisObj, object args ) : object
__GETTER__ByteOffset ( ScriptEngine engine, object thisObj, object args ) : object
__STUB__GetFloat32 ( ScriptEngine engine, object thisObj, object args ) : object
__STUB__GetFloat64 ( ScriptEngine engine, object thisObj, object args ) : object
__STUB__GetInt16 ( ScriptEngine engine, object thisObj, object args ) : object
__STUB__GetInt32 ( ScriptEngine engine, object thisObj, object args ) : object
__STUB__GetInt8 ( ScriptEngine engine, object thisObj, object args ) : object
__STUB__GetUint16 ( ScriptEngine engine, object thisObj, object args ) : object
__STUB__GetUint32 ( ScriptEngine engine, object thisObj, object args ) : object
__STUB__GetUint8 ( ScriptEngine engine, object thisObj, object args ) : object
__STUB__SetFloat32 ( ScriptEngine engine, object thisObj, object args ) : object
__STUB__SetFloat64 ( ScriptEngine engine, object thisObj, object args ) : object
__STUB__SetInt16 ( ScriptEngine engine, object thisObj, object args ) : object
__STUB__SetInt32 ( ScriptEngine engine, object thisObj, object args ) : object
__STUB__SetInt8 ( ScriptEngine engine, object thisObj, object args ) : object
__STUB__SetUint16 ( ScriptEngine engine, object thisObj, object args ) : object
__STUB__SetUint32 ( ScriptEngine engine, object thisObj, object args ) : object
__STUB__SetUint8 ( ScriptEngine engine, object thisObj, object args ) : object

Method Details

GetInt64() public method

Gets a signed 64-bit integer at the specified byte offset from the start of the DataView.
public GetInt64 ( int byteOffset, bool littleEndian ) : long
byteOffset int The offset, in bytes, from the start of the view where to /// read the data.
littleEndian bool Indicates whether the number is stored in little- or /// big-endian format. If false or undefined, a big-endian value is read.
return long