ByteBuffer mark flip reset clear
首先说ByteBuffer中的get()方法,其API中说的不是很清楚(水平太菜,看着有点模糊),通过以下方法说明:
byte[] buffer = new [in.remaining()];//其中in为IoBuffer实例,是<span style="font-family: Helvetica, Tahoma, Arial,...
转载
2018-09-21 20:56:12 ·
166 阅读 ·
0 评论