Nio之allocateDirect中array() java.lang.UnsupportedOperationException

ByteBuffer byteBuffer = ByteBuffer.allocateDirect(8);
byteBuffer.array();

直接内存是不支持array()方法的。

猜你喜欢

转载自blog.csdn.net/bpz31456/article/details/82253112