public Buf seek(long pos) { long p = pos; long size = getSize(); if (p < 0) p = size + p; if (p < 0 || p > size) throw IndexErr.make(pos).val; setPos(p); return this; }