/// <summary> /// Initializes a new instance of the DataView class. /// </summary> /// <param name="buffer">ArrayBuffer to use as the storage backing the new DataView object.</param> /// <param name="byteOffset">The offset, in bytes, to the first byte in the above buffer for the new view to reference. If unspecified, the buffer view starts with the first byte.</param> /// <param name="byteLength">The number of elements in the byte array. If unspecified, the view's length will match the buffer's length.</param> public DataView(ArrayBuffer buffer, int byteOffset, int byteLength) : base(JavaScriptImports.CreateCSOwnedObject(nameof(DataView), new object[] { buffer, byteOffset, byteLength })) { JSHostImplementation.RegisterCSOwnedObject(this); }
/// <summary> /// Initializes a new instance of the DataView class. /// </summary> /// <param name="buffer">ArrayBuffer to use as the storage backing the new DataView object.</param> public DataView(ArrayBuffer buffer) : base(JavaScriptImports.CreateCSOwnedObject(nameof(DataView), new object[] { buffer })) { JSHostImplementation.RegisterCSOwnedObject(this); }
/// <summary> /// Initializes a new instance of the Array class. /// </summary> /// <param name="_params">Parameters.</param> public Array(params object[] _params) : base(JavaScriptImports.CreateCSOwnedObject(nameof(Array), _params)) { JSHostImplementation.RegisterCSOwnedObject(this); }
public Function(params object[] args) : base(JavaScriptImports.CreateCSOwnedObject(nameof(Function), args)) { JSHostImplementation.RegisterCSOwnedObject(this); }
public Uint8Array(int length) : base(JavaScriptImports.CreateCSOwnedObject(nameof(Uint8Array), new object[] { length })) { JSHostImplementation.RegisterCSOwnedObject(this); }