MCPcopy Index your code
hub / github.com/klauspost/compress / setRLE

Method setRLE

zstd/fse_encoder.go:208–221  ·  view source on GitHub ↗
(val byte)

Source from the content-addressed store, hash-verified

206var rtbTable = [...]uint32{0, 473195, 504333, 520860, 550000, 700000, 750000, 830000}
207
208func (s *fseEncoder) setRLE(val byte) {
209 s.allocCtable()
210 s.actualTableLog = 0
211 s.ct.stateTable = s.ct.stateTable[:1]
212 s.ct.symbolTT[val] = symbolTransform{
213 deltaFindState: 0,
214 deltaNbBits: 0,
215 }
216 if debugEncoder {
217 println("setRLE: val", val, "symbolTT", s.ct.symbolTT[val])
218 }
219 s.rleVal = val
220 s.useRLE = true
221}
222
223// setBits will set output bits for the transform.
224// if nil is provided, the number of bits is equal to the index.

Callers 2

prepareSequencesMethod · 0.45
encodeMethod · 0.45

Calls 2

allocCtableMethod · 0.95
printlnFunction · 0.85

Tested by

no test coverage detected