Hi,

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?
Java Code:
ByteBuffer b;
// ...
b.hasArray(); //   -> true
IntBuffer ib = b.asIntBuffer();
ib.hasArray(); //   -> fasle
I thought it works like typecast of arrays in C, ie i am working with the same data just handled as differnt types.

beside, is there an(other) easy way of handling an array as array of bytes, shorts or ints as the same time?

thx bloose