github.com/chrislusf/greenpack@v3.7.1-0.20170911073826-ad5bd10b7c47+incompatible/msgp/runtimecfg.go (about) 1 package msgp 2 3 type RuntimeConfig struct { 4 5 // UnsafeZeroCopy will make strings point to the 6 // original msgpack buffers. This is unsafe because 7 // if the buffer changes the string will change/be 8 // invalid/not protected against re-use. But for 9 // processing and disposing of single messages, one-at-at-time, 10 // without re-using any part of a message (or making a copy of strings explicitly with copy() 11 // if you must) then we can avoid all allocations for strings. 12 UnsafeZeroCopy bool 13 }