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

Function EncodeBool

vm/crossvm_codec/codec.go:215–222  ·  view source on GitHub ↗
(sink *common.ZeroCopySink, b bool)

Source from the content-addressed store, hash-verified

213}
214
215func EncodeBool(sink *common.ZeroCopySink, b bool) {
216 sink.WriteByte(BooleanType)
217 if b {
218 sink.WriteByte(byte(1))
219 } else {
220 sink.WriteByte(byte(0))
221 }
222}
223
224func EncodeH256(sink *common.ZeroCopySink, hash common.Uint256) {
225 sink.WriteByte(H256Type)

Callers 3

BuildResultFromNeoFunction · 0.92
EncodeValueFunction · 0.85
EncodeListFunction · 0.85

Calls 1

WriteByteMethod · 0.80

Tested by

no test coverage detected