i have the following problem
if i create ByteBuffer, say b, which is backed by an array, the view as an IntBuffer is not backed by an array. How could that happen?
I thought it works like typecast of arrays in C, ie i am working with the same data just handled as differnt types.
b.hasArray(); // -> true
IntBuffer ib = b.asIntBuffer();
ib.hasArray(); // -> fasle
beside, is there an(other) easy way of handling an array as array of bytes, shorts or ints as the same time?