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

Method Serialization

p2pserver/message/types/block_header.go:57–63  ·  view source on GitHub ↗

Serialize message payload

(sink *common.ZeroCopySink)

Source from the content-addressed store, hash-verified

55
56//Serialize message payload
57func (this BlkHeader) Serialization(sink *common.ZeroCopySink) {
58 sink.WriteUint32(uint32(len(this.BlkHdr)))
59
60 for _, header := range this.BlkHdr {
61 header.Serialization(sink)
62 }
63}
64
65func (this *BlkHeader) CmdType() string {
66 return comm.HEADERS_TYPE

Callers

nothing calls this directly

Calls 2

WriteUint32Method · 0.80
SerializationMethod · 0.65

Tested by

no test coverage detected