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

Function EncodeH256

vm/crossvm_codec/codec.go:224–227  ·  view source on GitHub ↗
(sink *common.ZeroCopySink, hash common.Uint256)

Source from the content-addressed store, hash-verified

222}
223
224func EncodeH256(sink *common.ZeroCopySink, hash common.Uint256) {
225 sink.WriteByte(H256Type)
226 sink.WriteBytes(hash[:])
227}
228
229func EncodeInt128(sink *common.ZeroCopySink, val common.I128) {
230 sink.WriteByte(IntType)

Callers 2

EncodeValueFunction · 0.85
EncodeListFunction · 0.85

Calls 2

WriteByteMethod · 0.80
WriteBytesMethod · 0.80

Tested by

no test coverage detected