IOBuffer mark: use -1 if not marked