MCPcopy Create free account
hub / github.com/tensorflow/datasets / _read_hkey

Function _read_hkey

tensorflow_datasets/core/shuffle.py:66–69  ·  view source on GitHub ↗

Reads from fobj and returns hkey (128 bits integer).

(buff: bytes)

Source from the content-addressed store, hash-verified

64
65
66def _read_hkey(buff: bytes) -> int:
67 """Reads from fobj and returns hkey (128 bits integer)."""
68 a, b = struct.unpack('=QQ', buff)
69 return (a << 64) | b
70
71
72def _increase_open_files_limit():

Callers 1

read_valuesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected