Home
last modified time | relevance | path

Searched refs:BINARY_FORMAT (Results 1 – 1 of 1) sorted by relevance

/external/pigweed/pw_tokenizer/py/pw_tokenizer/
Dtokens.py334 BINARY_FORMAT = _BinaryFileFormat() variable
345 magic = fd.read(len(BINARY_FORMAT.magic))
347 return BINARY_FORMAT.magic == magic
376 magic, entry_count = BINARY_FORMAT.header.unpack(
377 fd.read(BINARY_FORMAT.header.size))
379 if magic != BINARY_FORMAT.magic:
387 token, day, month, year = BINARY_FORMAT.entry.unpack(
388 fd.read(BINARY_FORMAT.entry.size))
415 fd.write(BINARY_FORMAT.header.pack(BINARY_FORMAT.magic, len(entries)))
436 BINARY_FORMAT.entry.pack(entry.token, removed_day, removed_month,