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

Method Len

common/zero_copy_source.go:38–44  ·  view source on GitHub ↗

Len returns the number of bytes of the unread portion of the slice.

()

Source from the content-addressed store, hash-verified

36// Len returns the number of bytes of the unread portion of the
37// slice.
38func (self *ZeroCopySource) Len() uint64 {
39 length := uint64(len(self.s))
40 if self.off >= length {
41 return 0
42 }
43 return length - self.off
44}
45
46func (self *ZeroCopySource) Pos() uint64 {
47 return self.off

Callers 2

DeserializeInputFunction · 0.95
getAllPkFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected