Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/copernet/copernicus
/ Encode
Method
Encode
model/block/block.go:57–59 ·
view source on GitHub ↗
(w io.Writer)
Source
from the content-addressed store, hash-verified
55
}
56
57
func
(bl *Block) Encode(w io.Writer) error {
58
return
bl.Serialize(w)
59
}
60
61
func
(bl *Block) Decode(r io.Reader) error {
62
return
bl.Unserialize(r)
Callers
1
TestBlockEncodeAndDecode
Function · 0.95
Calls
1
Serialize
Method · 0.95
Tested by
1
TestBlockEncodeAndDecode
Function · 0.76