void reset({Int8List? buf, int offset = 0, int? length}) { _buf = buf; _pos = offset; _endPos = offset + (length ?? (buf?.length ?? 0)); }