Wrap buffer marking functions