Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ByteScanner (0.15 sec)

  1. 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)
  2. 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)
Back to top