ByteBuffer buffer = ByteBuffer.allocate(4+4 +name.length + address.length); buffer.putlnt(name.length) ; buffer.put(name) ; buffer.putlnt(address.length) ; buffer.put(address) ; return buffer.array() ;
posted on 2020-10-31 17:58 MaXianZhe 阅读(76) 评论(0) 编辑 收藏 举报