public BufferN position(int newPosition) { if ((newPosition > _limit) || (newPosition < 0)) throw new IllegalArgumentException(); _position = newPosition; if (_mark > _position) _mark = -1; return this; }
internal static String toString(BufferN b) { return (b.GetType().Name + "[pos=" + b.position() + " lim=" + b.limit() + " cap=" + b.capacity() + "]"); }