Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for lastRuneSize (0.09 sec)

  1. src/bufio/bufio.go

    // regard it is stricter than [Reader.UnreadByte], which will unread the last byte
    // from any read operation.)
    func (b *Reader) UnreadRune() error {
    	if b.lastRuneSize < 0 || b.r < b.lastRuneSize {
    		return ErrInvalidUnreadRune
    	}
    	b.r -= b.lastRuneSize
    	b.lastByte = -1
    	b.lastRuneSize = -1
    	return nil
    }
    
    // Buffered returns the number of bytes that can be read from the current buffer.
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 12 14:39:08 UTC 2023
    - 21.8K bytes
    - Viewed (0)
Back to top