MCPcopy
hub / github.com/borgbackup/borg / pack

Function pack

src/borg/remote.py:1252–1255  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

1250 compressor = Compressor("lz4")
1251
1252 def pack(data):
1253 csize, decrypted = data
1254 meta, compressed = compressor.compress({}, decrypted)
1255 return cache_struct.pack(csize, xxh64(compressed).digest(), meta["ctype"], meta["clevel"]) + compressed
1256
1257 def unpack(data):
1258 data = memoryview(data)

Callers

nothing calls this directly

Calls 2

packMethod · 0.80
digestMethod · 0.80

Tested by

no test coverage detected