'Trim the leading N bytes off the frame buffer and increment the
counter that keeps track of how many bytes have been read/used from the
socket.
:param int byte_count: The number of bytes consumed'

def _trim_frame_buffer(self, byte_count):

    self._frame_buffer = self._frame_buffer[byte_count:]
    self.bytes_received += byte_count
