Ejemplo n.º 1
0
 public Element(int index, ArrayBuffer parent)
 {
     this.valueType = JSObjectType.Int;
     this.index = index;
     this.iValue = parent.Data[index];
     this.data = parent.Data;
     this.attributes |= JSObjectAttributesInternal.Reassign;
 }
Ejemplo n.º 2
0
 public ArrayBuffer slice(int begin, int end)
 {
     if (end < begin || begin >= Data.Length || end >= Data.Length)
         throw new JSException((new RangeError("Invalid begin or end index")));
     var res = new ArrayBuffer(end - begin + 1);
     for (int i = 0, j = begin; j <= end; j++, i++)
         res.Data[i] = Data[j];
     return res;
 }
Ejemplo n.º 3
0
 public Int32Array(ArrayBuffer buffer)
     : base(buffer, 0, buffer.byteLength)
 {
 }
Ejemplo n.º 4
0
 public Float64Array(ArrayBuffer buffer, int bytesOffset, int length)
     : base(buffer, bytesOffset, length)
 {
 }
Ejemplo n.º 5
0
 public Float64Array(ArrayBuffer buffer, int bytesOffset)
     : base(buffer, bytesOffset, buffer.byteLength - bytesOffset)
 {
 }
Ejemplo n.º 6
0
 public Float64Array(ArrayBuffer buffer)
     : base(buffer, 0, buffer.byteLength)
 {
 }
Ejemplo n.º 7
0
 public Uint16Array(ArrayBuffer buffer)
     : base(buffer, 0, buffer.byteLength)
 {
 }
Ejemplo n.º 8
0
 public Uint8Array(ArrayBuffer buffer, int bytesOffset, int length)
     : base(buffer, bytesOffset, length)
 {
 }
Ejemplo n.º 9
0
 public Uint8ClampedArray(ArrayBuffer buffer, int bytesOffset, int length)
     : base(buffer, bytesOffset, length) { }
Ejemplo n.º 10
0
 public Uint8ClampedArray(ArrayBuffer buffer, int bytesOffset)
     : base(buffer, bytesOffset, buffer.byteLength - bytesOffset) { }
Ejemplo n.º 11
0
 public Uint8ClampedArray(ArrayBuffer buffer)
     : base(buffer, 0, buffer.byteLength) { }
Ejemplo n.º 12
0
 public Float64Array(ArrayBuffer buffer, int bytesOffset, int length)
     : base(buffer, bytesOffset, length)
 {
 }
Ejemplo n.º 13
0
 public Float64Array(ArrayBuffer buffer, int bytesOffset)
     : base(buffer, bytesOffset, buffer.byteLength - bytesOffset)
 {
 }
Ejemplo n.º 14
0
 public Float64Array(ArrayBuffer buffer)
     : base(buffer, 0, buffer.byteLength)
 {
 }
Ejemplo n.º 15
0
 public Int32Array(ArrayBuffer buffer, int bytesOffset)
     : base(buffer, bytesOffset, buffer.byteLength - bytesOffset)
 {
 }
Ejemplo n.º 16
0
 public Int32Array(ArrayBuffer buffer, int bytesOffset, int length)
     : base(buffer, bytesOffset, length)
 {
 }
Ejemplo n.º 17
0
 public Uint8Array(ArrayBuffer buffer)
     : base(buffer, 0, buffer.byteLength)
 {
 }