- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for makeReader (0.08 sec)
-
src/compress/flate/inflate.go
f.err = CorruptInputError(f.roffset) return 0, f.err } f.b = b >> (n & 31) f.nb = nb - n return int(chunk >> huffmanValueShift), nil } } } func (f *decompressor) makeReader(r io.Reader) { if rr, ok := r.(Reader); ok { f.rBuf = nil f.r = rr return } // Reuse rBuf if possible. Invariant: rBuf is always created (and owned) by decompressor. if f.rBuf != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 23:20:03 UTC 2023 - 20.4K bytes - Viewed (0) -
src/io/multi_test.go
func TestMultiReaderFlatten(t *testing.T) { pc := make([]uintptr, 1000) // 1000 should fit the full stack n := runtime.Callers(0, pc) var myDepth = callDepth(pc[:n]) var readDepth int // will contain the depth from which fakeReader.Read was called var r Reader = MultiReader(readerFunc(func(p []byte) (int, error) { n := runtime.Callers(1, pc) readDepth = callDepth(pc[:n]) return 0, errors.New("irrelevant") }))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 06 15:49:32 UTC 2022 - 10K bytes - Viewed (0)