Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for rs (0.13 sec)

  1. src/archive/zip/reader.go

    		r.File = make([]*File, 0, end.directoryRecords)
    	}
    	r.Comment = end.comment
    	rs := io.NewSectionReader(rdr, 0, size)
    	if _, err = rs.Seek(r.baseOffset+int64(end.directoryOffset), io.SeekStart); err != nil {
    		return err
    	}
    	buf := bufio.NewReader(rs)
    
    	// The count of files inside a zip is truncated to fit in a uint16.
    	// Gloss over this by reading headers until we encounter
    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)
  2. src/bytes/example_test.go

    func ExampleReplaceAll() {
    	fmt.Printf("%s\n", bytes.ReplaceAll([]byte("oink oink oink"), []byte("oink"), []byte("moo")))
    	// Output:
    	// moo moo moo
    }
    
    func ExampleRunes() {
    	rs := bytes.Runes([]byte("go gopher"))
    	for _, r := range rs {
    		fmt.Printf("%#U\n", r)
    	}
    	// Output:
    	// U+0067 'g'
    	// U+006F 'o'
    	// U+0020 ' '
    	// U+0067 'g'
    	// U+006F 'o'
    	// U+0070 'p'
    	// U+0068 'h'
    	// U+0065 'e'
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
  3. src/archive/tar/writer.go

    	case overwrite:
    		return n, ErrWriteTooLong
    	default:
    		return n, nil
    	}
    }
    
    func (sw *sparseFileWriter) ReadFrom(r io.Reader) (n int64, err error) {
    	rs, ok := r.(io.ReadSeeker)
    	if ok {
    		if _, err := rs.Seek(0, io.SeekCurrent); err != nil {
    			ok = false // Not all io.Seeker can really seek
    		}
    	}
    	if !ok {
    		return io.Copy(struct{ io.Writer }{sw}, r)
    	}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  4. src/bufio/bufio_test.go

    		func(w io.Writer) io.Writer { return onlyWriter{w} },
    		func(w io.Writer) io.Writer { return w },
    	}
    
    	rs := []func(io.Reader) io.Reader{
    		iotest.DataErrReader,
    		func(r io.Reader) io.Reader { return r },
    	}
    
    	for ri, rfunc := range rs {
    		for wi, wfunc := range ws {
    			input := createTestInput(8192)
    			b := new(strings.Builder)
    			w := NewWriter(wfunc(b))
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/asm/asm.go

    				prog.From = a[0]
    				prog.AddRestSource(a[1])
    				prog.To = a[2]
    			case arch.IsARM64CASP(op):
    				prog.From = a[0]
    				prog.To = a[1]
    				// both 1st operand and 3rd operand are (Rs, Rs+1) register pair.
    				// And the register pair must be contiguous.
    				if (a[0].Type != obj.TYPE_REGREG) || (a[2].Type != obj.TYPE_REGREG) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 25.3K bytes
    - Viewed (0)
Back to top