parameters: (self, size=None)
return_statement: return data
docstring: Read a chunk from rfile buffer and return it.
  
          Args:
              size (int): amount of data to read
  
          Returns:
              bytes: Chunk from rfile, limited by size if specified.
docstring_summary: Read a chunk from rfile buffer and return it.
docstring_tokens: Read a chunk from rfile buffer and return it .
function: def read(self, size=None):
          """Read a chunk from rfile buffer and return it.
  
          Args:
              size (int): amount of data to read
  
          Returns:
              bytes: Chunk from rfile, limited by size if specified.
          """
          if self.remaining == 0:
              return b''
          if size is None:
              size = self.remaining
          else:
              size = min(size, self.remaining)
  
          data = self.rfile.read(size)
          self.remaining -= len(data)
          return data
function_tokens: def read ( self , size = None ) : if self . remaining == 0 : return b'' if size is None : size = self . remaining else : size = min ( size , self . remaining ) data = self . rfile . read ( size ) self . remaining -= len ( data ) return data