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

Function write_all

tests/test_wallet.py:1295–1299  ·  view source on GitHub ↗

Wrapper, since os.write can do partial writes

(fd, bytestr)

Source from the content-addressed store, hash-verified

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

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected