(prefix []byte)
| 1038 | } |
| 1039 | |
| 1040 | func (e *doubleFastEncoder) ResetPrefix(prefix []byte) { |
| 1041 | e.fastEncoder.ResetPrefix(prefix) |
| 1042 | if len(prefix) < 8 { |
| 1043 | return |
| 1044 | } |
| 1045 | end := e.cur + int32(len(prefix)) - 8 |
| 1046 | for i := e.cur + 1; i < end; i += 2 { |
| 1047 | cv := load6432(prefix, i-e.cur) |
| 1048 | e.longTable[hashLen(cv, dFastLongTableBits, dFastLongLen)] = tableEntry{val: uint32(cv), offset: i} |
| 1049 | } |
| 1050 | } |
| 1051 | |
| 1052 | // ResetDict will reset and set a dictionary if not nil |
| 1053 | func (e *doubleFastEncoderDict) Reset(d *dict, singleBlock bool) { |
nothing calls this directly
no test coverage detected