Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/egonelbre/exp
/ NewEncoder
Function
NewEncoder
coder/arith/encoding.go:10–10 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
8
}
9
10
func
NewEncoder() *Encoder {
return
&Encoder{lo: 0, hi: ^uint32(0)} }
11
12
func
(p P) midpoint32(lo, hi uint32) uint32 {
13
return
lo + uint32(uint64(hi-lo)*uint64(p)>>probBits)
Callers
11
main
Function · 0.92
Encode
Method · 0.92
main
Function · 0.92
Encode
Method · 0.92
ModelTest
Function · 0.85
TestByteModel
Function · 0.85
TestShiftZeros
Function · 0.85
TestShift2Zeros
Function · 0.85
NewWriter
Function · 0.85
TestRandomEncodeDecode
Function · 0.85
TestPacking
Function · 0.85
Calls
no outgoing calls
Tested by
6
ModelTest
Function · 0.68
TestByteModel
Function · 0.68
TestShiftZeros
Function · 0.68
TestShift2Zeros
Function · 0.68
TestRandomEncodeDecode
Function · 0.68
TestPacking
Function · 0.68