- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for readFlush (0.11 sec)
-
src/compress/flate/dict_decoder_test.go
} length -= cnt if dd.availWrite() == 0 { got.Write(dd.readFlush()) } } } var writeString = func(str string) { for len(str) > 0 { cnt := copy(dd.writeSlice(), str) str = str[cnt:] dd.writeMark(cnt) if dd.availWrite() == 0 { got.Write(dd.readFlush()) } } } writeString(".") want.WriteByte('.') str := poem
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Feb 28 10:36:01 UTC 2016 - 4.4K bytes - Viewed (0) -
src/compress/flate/dict_decoder.go
} dd.wrPos = dstPos return dstPos - dstBase } // readFlush returns a slice of the historical buffer that is ready to be // emitted to the user. The data returned by readFlush must be fully consumed // before calling any other dictDecoder methods. func (dd *dictDecoder) readFlush() []byte { toRead := dd.hist[dd.rdPos:dd.wrPos] dd.rdPos = dd.wrPos if dd.wrPos == len(dd.hist) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 6K bytes - Viewed (0) -
src/compress/flate/inflate.go
f.err = noEOF(err) return } if f.dict.availWrite() == 0 || f.copyLen > 0 { f.toRead = f.dict.readFlush() f.step = (*decompressor).copyData return } f.finishBlock() } func (f *decompressor) finishBlock() { if f.final { if f.dict.availRead() > 0 { f.toRead = f.dict.readFlush() } f.err = io.EOF } f.step = (*decompressor).nextBlock }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 23:20:03 UTC 2023 - 20.4K bytes - Viewed (0)