MCPcopy Create free account
hub / github.com/ElementsProject/lightning / write_all

Function write_all

tests/test_wallet.py:1294–1298  ·  view source on GitHub ↗

Wrapper, since os.write can do partial writes

(fd, bytestr)

Source from the content-addressed store, hash-verified

1292
1293
1294def write_all(fd, bytestr):
1295 """Wrapper, since os.write can do partial writes"""
1296 off = 0
1297 while off < len(bytestr):
1298 off += os.write(fd, bytestr[off:])
1299
1300
1301class HsmTool(TailableProc):

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected