func (b *Buffer) Contents() []byte {
	b.lock.Lock()
	defer b.lock.Unlock()

	contents := make([]byte, len(b.contents))
	copy(contents, b.contents)
	return contents
}
func (b *Buffer) Contents() []byte {
	b.lock.Lock()
	defer b.lock.Unlock()

	contents := make([]byte, len(b.contents))
	copy(contents, b.contents)
	return contents
}
func ( b * Buffer ) Contents ( ) [ ] byte { b . lock . Lock ( ) defer b . lock . Unlock ( ) contents := make ( [ ] byte , len ( b . contents ) ) copy ( contents , b . contents ) return contents }
/*
Contents returns all data ever written to the buffer.
*/
/ * Contents returns all data ever written to the buffer .