parameters: (self, partialread, reqlen)
return_statement: return self.__rbuf
docstring: Implement the CReadableTransport interface for refill
docstring_summary: Implement the CReadableTransport interface for refill
docstring_tokens: Implement the CReadableTransport interface for refill
function: def cstringio_refill(self, partialread, reqlen):
      '''Implement the CReadableTransport interface for refill'''
      retstring = partialread
      if reqlen < self.DEFAULT_BUFFSIZE:
        retstring += self.read(self.DEFAULT_BUFFSIZE)
      while len(retstring) < reqlen:
        retstring += self.read(reqlen - len(retstring))
      self.__rbuf = StringIO(retstring)
      return self.__rbuf
function_tokens: def cstringio_refill ( self , partialread , reqlen ) : retstring = partialread if reqlen < self . DEFAULT_BUFFSIZE : retstring += self . read ( self . DEFAULT_BUFFSIZE ) while len ( retstring ) < reqlen : retstring += self . read ( reqlen - len ( retstring ) ) self . __rbuf = StringIO ( retstring ) return self . __rbuf