2014-07-06 12:29:36 +04:00
|
|
|
/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/* vim: set shiftwidth=4 tabstop=4 autoindent cindent expandtab: */
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
2014-07-14 04:36:47 +04:00
|
|
|
function LongArray(size) {
|
|
|
|
var array = Array(size);
|
2014-07-18 12:12:38 +04:00
|
|
|
array.class = CLASSES.getClass("[J");
|
2014-07-14 04:36:47 +04:00
|
|
|
return array;
|
2014-07-12 20:48:05 +04:00
|
|
|
}
|
2014-07-14 04:36:47 +04:00
|
|
|
|
2014-07-18 12:20:06 +04:00
|
|
|
var ARRAYS = {
|
|
|
|
'Z': Uint8Array,
|
|
|
|
'C': Uint16Array,
|
|
|
|
'F': Float32Array,
|
|
|
|
'D': Float64Array,
|
|
|
|
'B': Int8Array,
|
|
|
|
'S': Int16Array,
|
|
|
|
'I': Int32Array,
|
|
|
|
'J': LongArray,
|
|
|
|
};
|