MCPcopy Create free account
hub / github.com/egonelbre/exp / lengthLength

Function lengthLength

ber/forkable.go:138–145  ·  view source on GitHub ↗
(i int)

Source from the content-addressed store, hash-verified

136}
137
138func lengthLength(i int) (numBytes int) {
139 numBytes = 1
140 for i > 255 {
141 numBytes++
142 i >>= 8
143 }
144 return
145}

Callers 2

marshalHeaderFunction · 0.70
marshalLengthFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected