MCPcopy Create free account
hub / github.com/vmihailenco/msgpack / UseInternedStrings

Method UseInternedStrings

decode.go:161–167  ·  view source on GitHub ↗

UseInternedStrings enables support for decoding interned strings.

(on bool)

Source from the content-addressed store, hash-verified

159
160// UseInternedStrings enables support for decoding interned strings.
161func (d *Decoder) UseInternedStrings(on bool) {
162 if on {
163 d.flags |= useInternedStringsFlag
164 } else {
165 d.flags &= ^useInternedStringsFlag
166 }
167}
168
169// UsePreallocateValues enables preallocating values in chunks
170func (d *Decoder) UsePreallocateValues(on bool) {

Callers 1

TestInternedStringFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestInternedStringFunction · 0.76