Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for ByteScanner (0.25 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)
  4. src/io/io.go

    // processing. A [Reader] that does not implement  ByteReader
    // can be wrapped using bufio.NewReader to add this method.
    type ByteReader interface {
    	ReadByte() (byte, error)
    }
    
    // ByteScanner is the interface that adds the UnreadByte method to the
    // basic ReadByte method.
    //
    // UnreadByte causes the next call to ReadByte to return the last byte read.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:34:10 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  5. src/math/big/ratconv.go

    //	sign     = "+" | "-" .
    //	digits   = digit { [ '_' ] digit } .
    //	digit    = "0" ... "9" .
    //
    // A base 2 exponent is only permitted if base2ok is set.
    func scanExponent(r io.ByteScanner, base2ok, sepOk bool) (exp int64, base int, err error) {
    	// one char look-ahead
    	ch, err := r.ReadByte()
    	if err != nil {
    		if err == io.EOF {
    			err = nil
    		}
    		return 0, 10, err
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 15 22:16:34 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  6. src/math/big/natconv.go

    // is set, only), and -count is the number of fractional digits found.
    // In this case, the actual value of the scanned number is res * b**count.
    func (z nat) scan(r io.ByteScanner, base int, fracOk bool) (res nat, b, count int, err error) {
    	// reject invalid bases
    	baseOk := base == 0 ||
    		!fracOk && 2 <= base && base <= MaxBase ||
    		fracOk && (base == 2 || base == 8 || base == 10 || base == 16)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 14.6K bytes
    - Viewed (0)
  7. src/math/big/int.go

    func (z *Int) SetString(s string, base int) (*Int, bool) {
    	return z.setFromScanner(strings.NewReader(s), base)
    }
    
    // setFromScanner implements SetString given an io.ByteScanner.
    // For documentation see comments of SetString.
    func (z *Int) setFromScanner(r io.ByteScanner, base int) (*Int, bool) {
    	if _, _, err := z.scan(r, base); err != nil {
    		return nil, false
    	}
    	// entire content must have been consumed
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 17:02:38 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(*SectionReader).Read", Method, 0},
    		{"(*SectionReader).ReadAt", Method, 0},
    		{"(*SectionReader).Seek", Method, 0},
    		{"(*SectionReader).Size", Method, 0},
    		{"ByteReader", Type, 0},
    		{"ByteScanner", Type, 0},
    		{"ByteWriter", Type, 1},
    		{"Closer", Type, 0},
    		{"Copy", Func, 0},
    		{"CopyBuffer", Func, 5},
    		{"CopyN", Func, 0},
    		{"Discard", Var, 16},
    		{"EOF", Var, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  9. api/go1.txt

    pkg io, type ByteReader interface { ReadByte }
    pkg io, type ByteReader interface, ReadByte() (uint8, error)
    pkg io, type ByteScanner interface { ReadByte, UnreadByte }
    pkg io, type ByteScanner interface, ReadByte() (uint8, error)
    pkg io, type ByteScanner interface, UnreadByte() error
    pkg io, type Closer interface { Close }
    pkg io, type Closer interface, Close() error
    pkg io, type LimitedReader struct
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top