21 |
|
|
22 |
public static BUFFER allocateDirect(int capacity) |
public static BUFFER allocateDirect(int capacity) |
23 |
{ |
{ |
24 |
BUFFER b = new manta.runtime. BUFFERImpl(capacity, 0, capacity); |
BUFFER b = new gnu.java.nio. BUFFERImpl(capacity, 0, capacity); |
25 |
return b; |
return b; |
26 |
} |
} |
27 |
|
|
28 |
public static BUFFER allocate(int capacity) |
public static BUFFER allocate(int capacity) |
29 |
{ |
{ |
30 |
BUFFER b = new manta.runtime. BUFFERImpl(capacity, 0, capacity); |
BUFFER b = new gnu.java.nio. BUFFERImpl(capacity, 0, capacity); |
31 |
return b; |
return b; |
32 |
} |
} |
33 |
|
|
35 |
int offset, |
int offset, |
36 |
int length) |
int length) |
37 |
{ |
{ |
38 |
manta.runtime.BUFFERImpl b = new manta.runtime. BUFFERImpl(array, offset, length); |
gnu.java.nio.BUFFERImpl b = new gnu.java.nio. BUFFERImpl(array, offset, length); |
39 |
return b; |
return b; |
40 |
} |
} |
41 |
|
|
143 |
int i2 = a.pos; |
int i2 = a.pos; |
144 |
for (int i=0;i<r;i++) |
for (int i=0;i<r;i++) |
145 |
{ |
{ |
146 |
ELT t = get(i1)- a.get(i2); |
ELT t = (ELT)(get(i1)- a.get(i2)); |
147 |
if (t != 0) |
if (t != 0) |
148 |
{ |
{ |
149 |
return (int) t; |
return (int) t; |