Encode writes the Index to the stream of the encoder.
(idx *Index)
| 37 | |
| 38 | // Encode writes the Index to the stream of the encoder. |
| 39 | func (e *Encoder) Encode(idx *Index) error { |
| 40 | return e.encode(idx, true) |
| 41 | } |
| 42 | |
| 43 | func (e *Encoder) encode(idx *Index, footer bool) error { |
| 44 |