```if nextOffset(lastOffset) <= @buffer.length``` should work