- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for availWrite (0.16 sec)
-
src/compress/flate/dict_decoder.go
func (dd *dictDecoder) availRead() int { return dd.wrPos - dd.rdPos } // availWrite reports the available amount of output buffer space. func (dd *dictDecoder) availWrite() int { return len(dd.hist) - dd.wrPos } // writeSlice returns a slice of the available buffer to write data to. // // This invariant will be kept: len(s) <= availWrite() func (dd *dictDecoder) writeSlice() []byte { return dd.hist[dd.wrPos:] }
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/dict_decoder_test.go
if cnt == 0 { cnt = dd.writeCopy(dist, length) } 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('.')
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/flate_test.go
for { n, err := r.Read(readBuf) if err == io.EOF { // If the availWrite == windowSize, then that means that the // previous Read returned because the write buffer was full // and it just so happened that the stream had no more data. // This situation is rare, but unavoidable. if r.(*decompressor).dict.availWrite() == windowSize { earlyEOF = false } if n == 0 && earlyEOF {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 20 18:41:18 UTC 2020 - 11K bytes - Viewed (1) -
src/compress/flate/inflate.go
if err != nil { f.err = err return } var n uint // number of bits extra var length int switch { case v < 256: f.dict.writeByte(byte(v)) if f.dict.availWrite() == 0 { f.toRead = f.dict.readFlush() f.step = (*decompressor).huffmanBlock f.stepState = stateInit return } goto readLiteral case v == 256: f.finishBlock() return
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 23:20:03 UTC 2023 - 20.4K bytes - Viewed (0)