会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
HeliusKing
博客园
首页
新随笔
管理
2021年1月10日
ByteBuffer的slice()方法
摘要: 字节缓冲区切片 直接看个例子: @Test public void test1() { byte[] bytes = new byte[]{1,2,3,4,5}; ByteBuffer byteBuffer = ByteBuffer.wrap(bytes); //使用slice之前,一般先调用pos
阅读全文
posted @ 2021-01-10 22:48 HeliusKing
阅读(3922)
评论(0)
推荐(1)
公告