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

Method Serialization

core/states/state_base.go:34–36  ·  view source on GitHub ↗
(sink *common.ZeroCopySink)

Source from the content-addressed store, hash-verified

32}
33
34func (this *StateBase) Serialization(sink *common.ZeroCopySink) {
35 sink.WriteByte(this.StateVersion)
36}
37
38func (this *StateBase) Deserialization(source *common.ZeroCopySource) error {
39 stateVersion, eof := source.NextByte()

Callers 1

Calls 1

WriteByteMethod · 0.80

Tested by 1