MCPcopy Create free account
hub / github.com/tox-dev/filelock / _varint

Function _varint

tests/sqlite/test_connection_schema.py:104–108  ·  view source on GitHub ↗
(value: int)

Source from the content-addressed store, hash-verified

102
103
104def _varint(value: int) -> bytes:
105 groups = [value & 0x7F]
106 while value := value >> 7:
107 groups.insert(0, value & 0x7F | 0x80)
108 return bytes(groups)
109
110
111@pytest.mark.parametrize(

Calls

no outgoing calls

Tested by

no test coverage detected