Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for bufio (0.19 sec)

  1. src/bytes/buffer.go

    	}
    	// Buffer is now empty; reset.
    	b.Reset()
    	return n, nil
    }
    
    // WriteByte appends the byte c to the buffer, growing the buffer as needed.
    // The returned error is always nil, but is included to match [bufio.Writer]'s
    // WriteByte. If the buffer becomes too large, WriteByte will panic with
    // [ErrTooLarge].
    func (b *Buffer) WriteByte(c byte) error {
    	b.lastRead = opInvalid
    	m, ok := b.tryGrowByReslice(1)
    	if !ok {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
Back to top