UseCompactFloats causes the Encoder to chose a compact integer encoding for floats that can be represented as integers.
(on bool)
| 180 | // UseCompactFloats causes the Encoder to chose a compact integer encoding |
| 181 | // for floats that can be represented as integers. |
| 182 | func (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. |
| 191 | func (e *Encoder) UseInternedStrings(on bool) { |
no outgoing calls