Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for DecodeRune (0.14 sec)

  1. src/bytes/buffer.go

    		b.Reset()
    		return 0, 0, io.EOF
    	}
    	c := b.buf[b.off]
    	if c < utf8.RuneSelf {
    		b.off++
    		b.lastRead = opReadRune1
    		return rune(c), 1, nil
    	}
    	r, n := utf8.DecodeRune(b.buf[b.off:])
    	b.off += n
    	b.lastRead = readOp(n)
    	return r, n, nil
    }
    
    // UnreadRune unreads the last rune returned by [Buffer.ReadRune].
    // If the most recent read or write operation on the buffer was
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Oct 29 16:47:05 UTC 2024
    - 15.7K bytes
    - Viewed (0)
Back to top