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

Method Serialization

p2pserver/message/types/block_header.go:41–47  ·  view source on GitHub ↗
(sink *common.ZeroCopySink)

Source from the content-addressed store, hash-verified

39}
40
41func (this *RawBlockHeader) Serialization(sink *common.ZeroCopySink) {
42 sink.WriteUint32(uint32(len(this.BlkHdr)))
43
44 for _, header := range this.BlkHdr {
45 header.Serialization(sink)
46 }
47}
48func (this *RawBlockHeader) Deserialization(source *common.ZeroCopySource) error {
49 panic("[block_header] unsupport")
50}

Callers

nothing calls this directly

Calls 2

WriteUint32Method · 0.80
SerializationMethod · 0.65

Tested by

no test coverage detected