Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for io (0.12 sec)

  1. src/bytes/reader.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package bytes
    
    import (
    	"errors"
    	"io"
    	"unicode/utf8"
    )
    
    // A Reader implements the io.Reader, io.ReaderAt, io.WriterTo, io.Seeker,
    // io.ByteScanner, and io.RuneScanner interfaces by reading from
    // a byte slice.
    // Unlike a [Buffer], a Reader is read-only and supports seeking.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 3.9K bytes
    - Viewed (1)
  2. src/archive/zip/reader.go

    		} else {
    			return &dirReader{io.EOF}, nil
    		}
    	}
    	size := int64(f.CompressedSize64)
    	r := io.NewSectionReader(f.zipr, f.headerOffset+bodyOffset, size)
    	dcomp := f.zip.decompressor(f.Method)
    	if dcomp == nil {
    		return nil, ErrAlgorithm
    	}
    	var rc io.ReadCloser = dcomp(r)
    	var desr io.Reader
    	if f.hasDataDescriptor() {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  3. src/archive/tar/reader.go

    	return len(b), nil
    }
    
    // mustReadFull is like io.ReadFull except it returns
    // io.ErrUnexpectedEOF when io.EOF is hit before len(b) bytes are read.
    func mustReadFull(r io.Reader, b []byte) (int, error) {
    	n, err := tryReadFull(r, b)
    	if err == io.EOF {
    		err = io.ErrUnexpectedEOF
    	}
    	return n, err
    }
    
    // tryReadFull is like io.ReadFull except it returns
    // io.EOF when it is hit before len(b) bytes are read.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
Back to top