Ejemplo n.º 1
0
 /// <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);
 }
Ejemplo n.º 2
0
 /// <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);
 }
Ejemplo n.º 3
0
 /// <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);
 }
Ejemplo n.º 4
0
 public Function(params object[] args)
     : base(JavaScriptImports.CreateCSOwnedObject(nameof(Function), args))
 {
     JSHostImplementation.RegisterCSOwnedObject(this);
 }
Ejemplo n.º 5
0
 public Uint8Array(int length)
     : base(JavaScriptImports.CreateCSOwnedObject(nameof(Uint8Array), new object[] { length }))
 {
     JSHostImplementation.RegisterCSOwnedObject(this);
 }