MCPcopy 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
57func (bl *Block) Encode(w io.Writer) error {
58 return bl.Serialize(w)
59}
60
61func (bl *Block) Decode(r io.Reader) error {
62 return bl.Unserialize(r)

Callers 1

TestBlockEncodeAndDecodeFunction · 0.95

Calls 1

SerializeMethod · 0.95

Tested by 1

TestBlockEncodeAndDecodeFunction · 0.76