EncodeNoHist will encode a block with no history and no following blocks. Most notable difference is that src will not be copied for history and we do not need to check for max match length.
(blk *blockEnc, src []byte)
| 469 | // Most notable difference is that src will not be copied for history and |
| 470 | // we do not need to check for max match length. |
| 471 | func (e *bestFastEncoder) EncodeNoHist(blk *blockEnc, src []byte) { |
| 472 | e.ensureHist(len(src)) |
| 473 | e.Encode(blk, src) |
| 474 | } |
| 475 | |
| 476 | // Reset will reset and set a dictionary if not nil |
| 477 | func (e *bestFastEncoder) Reset(d *dict, singleBlock bool) { |
nothing calls this directly
no test coverage detected