Lines Matching defs:read
99 def read(self, size):
100 return os.read(self.fd, size)
108 needs to have a read() or write() method and is accessed
228 self.read(xlen)
254 self.read(self.bufsize)
255 self.read(remainder)
260 def read(self, size=None):
300 read another block from the stream.
305 buf = self.fileobj.read(self.bufsize)
333 def read(self, size=None):
343 return self.fileobj.read(bytestoread)
347 read a whole line. readline() and read() must not
359 buf = self.read(min(size, 100))
454 rest of the data will be read in on demand.
479 buf += fileobj.read(26 - len(buf))
483 buf += fileobj.read(namesize)
488 buf += fileobj.read(namesize % 2)
490 buf += fileobj.read(110 - len(buf))
500 buf += fileobj.read(namesize)
505 buf += fileobj.read(cpioinfo.hdrsize - 110 - namesize)
519 """Return a file-like object which can be read to extract the contents.
535 read from an existing archive, 'a' to append data to an existing
570 self._loaded = False # flag if all members have been read
779 raise ReadError("read/write via 7z failed")
822 # what kind of archive it is. It will have to read the
824 buf = self.fileobj.read(6)
961 magic = open(name).read(CMS_LEN)