/make/scripts/

ss="hl opt">.gluegen.runtime; import java.nio.*; /** * @author Sven Gothel * @author Michael Bien */ final class Int64BufferSE extends Int64Buffer { private LongBuffer pb; Int64BufferSE(ByteBuffer bb) { super(bb); this.pb = bb.asLongBuffer(); capacity = bb.capacity() / elementSize(); position = 0; backup = new long[capacity]; } public long get(int idx) { if (0 > idx || idx >= capacity) { throw new IndexOutOfBoundsException(); } return pb.get(idx); } public Int64Buffer put(int idx, long v) { if (0 > idx || idx >= capacity) { throw new IndexOutOfBoundsException(); } backup[idx] = v; pb.put(idx, v); return this; } public Int64Buffer put(long v) { put(position, v); position++; return this; } }