<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def _check_underflow(self, n):
        '''
        Raise BufferUnderflow if there's not enough bytes to satisfy
        the request.
        '''
        if self._pos + n > self._end_pos:
            raise self.BufferUnderflow()