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

Function EncodeBytes

vm/crossvm_codec/codec.go:198–202  ·  view source on GitHub ↗
(sink *common.ZeroCopySink, buf []byte)

Source from the content-addressed store, hash-verified

196}
197
198func EncodeBytes(sink *common.ZeroCopySink, buf []byte) {
199 sink.WriteByte(ByteArrayType)
200 sink.WriteUint32(uint32(len(buf)))
201 sink.WriteBytes(buf)
202}
203
204func EncodeString(sink *common.ZeroCopySink, buf string) {
205 sink.WriteByte(StringType)

Callers 3

BuildResultFromNeoFunction · 0.92
EncodeValueFunction · 0.85
EncodeListFunction · 0.85

Calls 3

WriteByteMethod · 0.80
WriteUint32Method · 0.80
WriteBytesMethod · 0.80

Tested by

no test coverage detected