Sizer is an interface implemented by types that can estimate their size when MessagePack encoded. This interface is optional, but encoding/marshaling implementations may use this as a way to pre-allocate memory for serialization.
| 26 | // may use this as a way to pre-allocate |
| 27 | // memory for serialization. |
| 28 | type Sizer interface { |
| 29 | Msgsize() int |
| 30 | } |
| 31 | |
| 32 | var ( |
| 33 | // Nowhere is an io.Writer to nowhere |
no outgoing calls
no test coverage detected
searching dependent graphs…