func (v *View) Append(data []byte) {
	for done := 0; done < len(data); {
		buf := v.data.Back()

		// Find the first empty buffer.
		if buf == nil || buf.Full() {
			buf = bufferPool.Get().(*Buffer)
			v.data.PushBack(buf)
		}

		// Copy in to the given buffer.
		n := copy(buf.data[buf.write:], data[done:])
		done += n
		buf.write += n
		v.size += int64(n)
	}
}
// Append appends the given data.
Append appends the given data.
// Append appends the given data .
func (v *View) Append(data []byte) {
	for done := 0; done < len(data); {
		buf := v.data.Back()
		if buf == nil || buf.Full() {
			buf = bufferPool.Get().(*Buffer)
			v.data.PushBack(buf)
		}
		n := copy(buf.data[buf.write:], data[done:])
		done += n
		buf.write += n
		v.size += int64(n)
	}
}
func ( v * View ) Append ( data [ ] byte ) { for done := 0 ; done < len ( data ) ; { buf := v . data . Back ( ) if buf == nil || buf . Full ( ) { buf = bufferPool . Get ( ) . ( * Buffer ) v . data . PushBack ( buf ) } n := copy ( buf . data [ buf . write : ] , data [ done : ] ) done += n buf . write += n v . size += int64 ( n ) } }
Append appends the given data.
Append appends the given data .
// Find the first empty buffer. // Copy in to the given buffer.