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; }
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; }
public Int32Array(ArrayBuffer buffer) : base(buffer, 0, buffer.byteLength) { }
public Float64Array(ArrayBuffer buffer, int bytesOffset, int length) : base(buffer, bytesOffset, length) { }
public Float64Array(ArrayBuffer buffer, int bytesOffset) : base(buffer, bytesOffset, buffer.byteLength - bytesOffset) { }
public Float64Array(ArrayBuffer buffer) : base(buffer, 0, buffer.byteLength) { }
public Uint16Array(ArrayBuffer buffer) : base(buffer, 0, buffer.byteLength) { }
public Uint8Array(ArrayBuffer buffer, int bytesOffset, int length) : base(buffer, bytesOffset, length) { }
public Uint8ClampedArray(ArrayBuffer buffer, int bytesOffset, int length) : base(buffer, bytesOffset, length) { }
public Uint8ClampedArray(ArrayBuffer buffer, int bytesOffset) : base(buffer, bytesOffset, buffer.byteLength - bytesOffset) { }
public Uint8ClampedArray(ArrayBuffer buffer) : base(buffer, 0, buffer.byteLength) { }
public Int32Array(ArrayBuffer buffer, int bytesOffset) : base(buffer, bytesOffset, buffer.byteLength - bytesOffset) { }
public Int32Array(ArrayBuffer buffer, int bytesOffset, int length) : base(buffer, bytesOffset, length) { }
public Uint8Array(ArrayBuffer buffer) : base(buffer, 0, buffer.byteLength) { }