Lines Matching refs:data

200         """get_data(pathname) -> string with file data.
202 Return the data associated with 'pathname'. Raise OSError if
330 """Reload the file data of the archive path."""
391 # data_size, # size of compressed data on disk
392 # file_size, # size of decompressed data
395 # date, # mod data of file (in dos format)
396 # crc, # crc checksum of the data
434 data = fp.read()
438 pos = data.rfind(STRING_END_ARCHIVE)
442 buffer = data[pos:pos+END_CENTRAL_DIR_SIZE]
446 header_position = file_size - len(data) + pos
498 # slower than reading the data because fseek flushes stdio's
572 raise ZipImportError("can't decompress data; zlib not available")
579 raise ZipImportError("can't decompress data; zlib not available")
586 # Given a path to a Zip file and a toc_entry, return the (uncompressed) data.
590 raise ZipImportError('negative data size')
609 file_offset += header_size # Start of file data
616 raise OSError("zipimport: can't read data")
619 # data is not compressed
626 raise ZipImportError("can't decompress data; zlib not available")
638 # Given the contents of a .py[co] file, unmarshal the data
641 def _unmarshal_code(self, pathname, fullpath, fullname, data):
647 flags = _bootstrap_external._classify_pyc(data, fullname, exc_details)
662 data, source_hash, fullname, exc_details)
670 if (not _eq_mtime(_unpack_uint32(data[8:12]), source_mtime) or
671 _unpack_uint32(data[12:16]) != source_size):
676 code = marshal.loads(data[16:])
758 data = _get_data(self.archive, toc_entry)
762 code = _unmarshal_code(self, modpath, fullpath, fullname, data)
766 code = _compile_source(modpath, data)