NewWALEncoder returns a new encoder that writes to wr.
(wr io.Writer)
| 291 | |
| 292 | // NewWALEncoder returns a new encoder that writes to wr. |
| 293 | func NewWALEncoder(wr io.Writer) *WALEncoder { |
| 294 | return &WALEncoder{wr} |
| 295 | } |
| 296 | |
| 297 | // Encode writes the custom encoding of v to the stream. It returns an error if |
| 298 | // the encoded size of v is greater than 1MB. Any error encountered |
no outgoing calls