Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
138
func
lengthLength(i int) (numBytes int) {
139
numBytes = 1
140
for
i > 255 {
141
numBytes++
142
i >>= 8
143
}
144
return
145
}
Callers
2
marshalHeader
Function · 0.70
marshalLength
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected