なぜこれが機能しないのですか?
tt のバッキング配列を調べると、すべての値が 0 であるのに対し、bb は 1 ~ 100 のシーケンスです。また、system.out が最後に同一ではないのはなぜですか?
ByteBuffer bb = ByteBuffer.allocateDirect(100);
for(int i =0;i< 100; i++) {
bb.put(new Byte(""+i));
}
ByteBuffer tt = ByteBuffer.allocateDirect(100);
tt.put(bb);
for(int i =0;i< 100; i++) {
System.out.println("BACKED bb" + bb.get(i));
System.out.println("BACKED tt" + tt.get(i));
}