Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/petertodd/python-bitcoinlib
/ stream_serialize
Method
stream_serialize
bitcoin/net.py:92–94 ·
view source on GitHub ↗
(self, f)
Source
from the content-addressed store, hash-verified
90
return
c
91
92
def
stream_serialize(self, f):
93
f.write(struct.pack(b
"<i"
, self.type))
94
f.write(self.hash)
95
96
def
__repr__(self):
97
return
"CInv(type=%s hash=%s)"
% (self.typemap[self.type], b2lx(self.hash))
Callers
3
test_serialization
Method · 0.95
stream_serialize
Method · 0.45
stream_serialize
Method · 0.45
Calls
no outgoing calls
Tested by
1
test_serialization
Method · 0.76