Lines Matching refs:FORMAT_STRING
247 FORMAT_STRING = ('!4s2L' # magic, major & minor version.
260 assert struct.calcsize(self.FORMAT_STRING) == self.SIZE
265 self.icp_count) = struct.unpack(self.FORMAT_STRING, data)
286 return struct.pack(self.FORMAT_STRING, self.magic,
367 FORMAT_STRING = ('!L' # transparency log server url size
387 assert struct.calcsize(self.FORMAT_STRING) == self.SIZE
397 self._inc_proof_size_expected) = struct.unpack(self.FORMAT_STRING,
545 self.FORMAT_STRING,
886 FORMAT_STRING = ('!B' # Hash algorithm
912 data_length = struct.calcsize(cls.FORMAT_STRING)
914 cls.FORMAT_STRING, stream.read(data_length))
929 return struct.calcsize(self.FORMAT_STRING) + \
938 stream.write(struct.pack(self.FORMAT_STRING, self.hash_algorithm.value,
1119 FORMAT_STRING = ('!B' # Version
1150 data_length = struct.calcsize(cls.FORMAT_STRING)
1153 cls.FORMAT_STRING, stream.read(data_length))
1196 return struct.calcsize(self.FORMAT_STRING)
1210 stream.write(struct.pack(self.FORMAT_STRING, self.version, self.timestamp,