ByteBuffer
ByteBuffer.allocate(capacity);
capacity:容积
limit :
position:
mark() 标记当前position 的位置,可通过reset()回到当前位置
rewind()重复读;
clear()清空缓冲区 缓冲区的数据还是存在 ,只是处于"被遗忘状态"
hasRemaining() 缓冲区中是否还有可读的数据
allocate()非直接缓冲区
allocateDirect();不安全 消耗大