Home | History | Annotate | Download | only in bytes

Lines Matching defs:String

49 // String returns the contents of the unread portion of the buffer
50 // as a string. If the Buffer is a nil pointer, it returns "<nil>".
51 func (b *Buffer) String() string {
56 return string(b.buf[b.off:])
144 func (b *Buffer) WriteString(s string) (n int, err error) {
397 // returning a string containing the data up to and including the delimiter.
402 func (b *Buffer) ReadString(delim byte) (line string, err error) {
404 return string(slice), err
416 // NewBufferString creates and initializes a new Buffer using string s as its
418 // string.
422 func NewBufferString(s string) *Buffer {