MCPcopy Create free account
hub / github.com/DNAProject/DNA / Serialization

Method Serialization

p2pserver/message/types/block.go:38–41  ·  view source on GitHub ↗

Serialize message payload

(sink *common.ZeroCopySink)

Source from the content-addressed store, hash-verified

36
37//Serialize message payload
38func (this *Block) Serialization(sink *common.ZeroCopySink) {
39 this.Blk.Serialization(sink)
40 sink.WriteHash(this.MerkleRoot)
41}
42
43func (this *Block) CmdType() string {
44 return comm.BLOCK_TYPE

Callers

nothing calls this directly

Calls 2

WriteHashMethod · 0.80
SerializationMethod · 0.65

Tested by

no test coverage detected