Example #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;
 }
Example #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;
 }
Example #3
0
 public Int32Array(ArrayBuffer buffer)
     : base(buffer, 0, buffer.byteLength)
 {
 }
Example #4
0
 public Float64Array(ArrayBuffer buffer, int bytesOffset, int length)
     : base(buffer, bytesOffset, length)
 {
 }
Example #5
0
 public Float64Array(ArrayBuffer buffer, int bytesOffset)
     : base(buffer, bytesOffset, buffer.byteLength - bytesOffset)
 {
 }
Example #6
0
 public Float64Array(ArrayBuffer buffer)
     : base(buffer, 0, buffer.byteLength)
 {
 }
Example #7
0
 public Uint16Array(ArrayBuffer buffer)
     : base(buffer, 0, buffer.byteLength)
 {
 }
Example #8
0
 public Uint8Array(ArrayBuffer buffer, int bytesOffset, int length)
     : base(buffer, bytesOffset, length)
 {
 }
Example #9
0
 public Uint8ClampedArray(ArrayBuffer buffer, int bytesOffset, int length)
     : base(buffer, bytesOffset, length) { }
Example #10
0
 public Uint8ClampedArray(ArrayBuffer buffer, int bytesOffset)
     : base(buffer, bytesOffset, buffer.byteLength - bytesOffset) { }
Example #11
0
 public Uint8ClampedArray(ArrayBuffer buffer)
     : base(buffer, 0, buffer.byteLength) { }
Example #12
0
 public Float64Array(ArrayBuffer buffer, int bytesOffset, int length)
     : base(buffer, bytesOffset, length)
 {
 }
Example #13
0
 public Float64Array(ArrayBuffer buffer, int bytesOffset)
     : base(buffer, bytesOffset, buffer.byteLength - bytesOffset)
 {
 }
Example #14
0
 public Float64Array(ArrayBuffer buffer)
     : base(buffer, 0, buffer.byteLength)
 {
 }
Example #15
0
 public Int32Array(ArrayBuffer buffer, int bytesOffset)
     : base(buffer, bytesOffset, buffer.byteLength - bytesOffset)
 {
 }
Example #16
0
 public Int32Array(ArrayBuffer buffer, int bytesOffset, int length)
     : base(buffer, bytesOffset, length)
 {
 }
Example #17
0
 public Uint8Array(ArrayBuffer buffer)
     : base(buffer, 0, buffer.byteLength)
 {
 }