MCPcopy Index your code
hub / github.com/vmihailenco/msgpack / UseCompactFloats

Method UseCompactFloats

encode.go:182–188  ·  view source on GitHub ↗

UseCompactFloats causes the Encoder to chose a compact integer encoding for floats that can be represented as integers.

(on bool)

Source from the content-addressed store, hash-verified

180// UseCompactFloats causes the Encoder to chose a compact integer encoding
181// for floats that can be represented as integers.
182func (e *Encoder) UseCompactFloats(on bool) {
183 if on {
184 e.flags |= useCompactFloatsFlag
185 } else {
186 e.flags &= ^useCompactFloatsFlag
187 }
188}
189
190// UseInternedStrings causes the Encoder to intern strings.
191func (e *Encoder) UseInternedStrings(on bool) {

Callers 1

TestFloatEncodingFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestFloatEncodingFunction · 0.76