0 <= mark <= position <= limit <= capacity
[mark,limit]为活跃元素。IO读写关心的。
init() {mark = -1;position = 0;}
clear() {position = 0; limit = capacity; mark = -1; return this;}
flip() {limit = position; position = 0; mark = -1; return this;}
reset() {position = mark;return this;}
rewind(){position = 0;mark = -1;return this;}
nio.Buffer
最新推荐文章于 2025-06-08 11:23:06 发布