write 할때 int 형으로 하고 read 할때 long 형으로 하면 값을 어떻게 계산해야되나요??
System.out.println("다양한 인트를 바이트버퍼에 집어넣고 빼기------------------");
ByteBuffer buffer5=ByteBuffer.allocate(12);
buffer5.putInt((int)10);
buffer5.putInt((int)11);
buffer5.rewind();
long b=buffer5.getLong();
System.out.println(b);//읽은값:42949672971
총 8바이트를 넣었으니
getlLong()에는 이상이 없는데 얻은 값의
해석법을 잘 모르겠습니다
어떻게 계산하면 42949672971 값이 나온는거죠??