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