Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ByteScanner (0.23 sec)

  1. src/strings/reader.go

    // license that can be found in the LICENSE file.
    
    package strings
    
    import (
    	"errors"
    	"io"
    	"unicode/utf8"
    )
    
    // A Reader implements the [io.Reader], [io.ReaderAt], [io.ByteReader], [io.ByteScanner],
    // [io.RuneReader], [io.RuneScanner], [io.Seeker], and [io.WriterTo] interfaces by reading
    // from a string.
    // The zero value for Reader operates like a Reader of an empty string.
    type Reader struct {
    	s        string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:10:31 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  2. src/math/big/intconv.go

    // “0b” or “0B” selects base 2; a “0”, “0o”, or “0O” prefix selects
    // base 8, and a “0x” or “0X” prefix selects base 16. Otherwise the selected
    // base is 10.
    func (z *Int) scan(r io.ByteScanner, base int) (*Int, int, error) {
    	// determine sign
    	neg, err := scanSign(r)
    	if err != nil {
    		return nil, 0, err
    	}
    
    	// determine mantissa
    	z.abs, base, _, err = z.abs.scan(r, base, false)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  3. src/math/big/floatconv.go

    }
    
    // scan is like Parse but reads the longest possible prefix representing a valid
    // floating point number from an io.ByteScanner rather than a string. It serves
    // as the implementation of Parse. It does not recognize ±Inf and does not expect
    // EOF at the end.
    func (z *Float) scan(r io.ByteScanner, base int) (f *Float, b int, err error) {
    	prec := z.prec
    	if prec == 0 {
    		prec = 64
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 8.3K bytes
    - Viewed (0)
Back to top