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

Method NextVarBytes

common/zero_copy_source.go:167–177  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165}
166
167func (self *ZeroCopySource) NextVarBytes() (data []byte, size uint64, irregular bool, eof bool) {
168 var count uint64
169 count, size, irregular, eof = self.NextVarUint()
170 size += count
171
172 if count > 0 {
173 data, eof = self.NextBytes(count)
174 }
175
176 return
177}
178
179func (self *ZeroCopySource) NextAddress() (data Address, eof bool) {
180 var buf []byte

Callers 15

NextStringMethod · 0.95
TestSourceSinkFunction · 0.95
DeserializeMethod · 0.95
GetKeyStateFunction · 0.95
SetValueMethod · 0.95
GasInitFunction · 0.95
DeserializationMethod · 0.80
DeserializationMethod · 0.80
DeserializationMethod · 0.80

Calls 2

NextVarUintMethod · 0.95
NextBytesMethod · 0.95

Tested by 1

TestSourceSinkFunction · 0.76