MCPcopy Create free account
hub / github.com/SecurityInnovation/PGPy / binload

Function binload

tests/test_02_packets.py:36–40  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

34
35
36def binload(f):
37 with open(f, 'rb') as ff:
38 buf = bytearray(os.fstat(ff.fileno()).st_size)
39 ff.readinto(buf)
40 return buf
41
42
43pktfiles = sorted(glob.glob('tests/testdata/packets/[0-9]*'))

Callers 1

test_loadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…