equal
deleted
inserted
replaced
34 |
34 |
35 /** |
35 /** |
36 * Int32 array for the TypedArray extension |
36 * Int32 array for the TypedArray extension |
37 */ |
37 */ |
38 @ScriptClass("Int32Array") |
38 @ScriptClass("Int32Array") |
39 public class NativeInt32Array extends ArrayBufferView { |
39 public final class NativeInt32Array extends ArrayBufferView { |
40 private static final int BYTES_PER_ELEMENT = 4; |
40 private static final int BYTES_PER_ELEMENT = 4; |
41 private static final Factory FACTORY = new Factory(BYTES_PER_ELEMENT) { |
41 private static final Factory FACTORY = new Factory(BYTES_PER_ELEMENT) { |
42 @Override |
42 @Override |
43 public ArrayBufferView construct(final NativeArrayBuffer buffer, final int byteOffset, final int length) { |
43 public ArrayBufferView construct(final NativeArrayBuffer buffer, final int byteOffset, final int length) { |
44 return new NativeInt32Array(buffer, byteOffset, length); |
44 return new NativeInt32Array(buffer, byteOffset, length); |