Lines Matching refs:buf
254 def match(self, buf, pos): argument
255 match = self._matcher.match(buf, pos)
885 def _unpack_uint32(buf): argument
886 return struct.unpack('<I', buf)[0]
890 def _unpack_uint32_iter(buf): argument
891 for p in struct.iter_unpack('<I', buf):
935 buf = fp.read(4)
936 if not buf:
939 record_size = self._unpack_uint32(buf)
950 buf = fp.read(record_size)
952 dep_iter = self._unpack_uint32_iter(buf)
974 buf = fp.read(record_size - 4)
975 path = self._extract_path(buf, encoding)
976 buf = fp.read(4)
977 checksum = 0xffffffff ^ self._unpack_uint32(buf)