equal
deleted
inserted
replaced
34 |
34 |
35 /** |
35 /** |
36 * Int16 array for the TypedArray extension |
36 * Int16 array for the TypedArray extension |
37 */ |
37 */ |
38 @ScriptClass("Int16Array") |
38 @ScriptClass("Int16Array") |
39 public class NativeInt16Array extends ArrayBufferView { |
39 public final class NativeInt16Array extends ArrayBufferView { |
40 private static final int BYTES_PER_ELEMENT = 2; |
40 private static final int BYTES_PER_ELEMENT = 2; |
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 NativeInt16Array(buffer, byteOffset, length); |
44 return new NativeInt16Array(buffer, byteOffset, length); |