| 14 | } |
| 15 | |
| 16 | type ZstdCodec struct { |
| 17 | encoders sync.Pool // *zstd.Encoder |
| 18 | decoders sync.Pool // *zstd.Decoder |
| 19 | } |
| 20 | |
| 21 | func (c *ZstdCodec) Encode(src, dst []byte) ([]byte, error) { |
| 22 | e, _ := c.encoders.Get().(*zstd.Encoder) |
nothing calls this directly
no outgoing calls
no test coverage detected