开发者

How can relate "block of memory" to "objects" in Java?

开发者 https://www.devze.com 2022-12-22 21:35 出处:网络
How can I define an object in Java in a way that would mean \'开发者_运维知识库block of memory\'?Here are couple of examples:

How can I define an object in Java in a way that would mean '开发者_运维知识库block of memory'?


Here are couple of examples:

final byte[] blockOfMemory = new byte[ 1024 ];

final java.nio.ByteBuffer blockOfMemory2 =
    java.nio.ByteBuffer.allocateDirect( 1024 );
0

精彩评论

暂无评论...
验证码 换一张
取 消