def read(self, num_bytes=None):
        """Read and return the specified bytes from the buffer."""
        res = self.get_next(num_bytes)
        self.skip(len(res))
        return res
def read ( self , num_bytes = None ) : res = self . get_next ( num_bytes ) self . skip ( len ( res ) ) return res
Read and return the specified bytes from the buffer.