func (b *Buffer) Drained() bool {
	b.x__.Lock()
	defer b.x__.Unlock()
	if b.list.Len() != 1 {
		return false
	}
	if _, isEOF := b.list.Back().Value.(eof); isEOF {
		return true
	}
	return false
}
// Drained returns true if no more writes are allowed on the connection and the buffer is empty or has only an EOF chunk in it.
Drained returns true if no more writes are allowed on the connection and the buffer is empty or has only an EOF chunk in it.
// Drained returns true if no more writes are allowed on the connection and the buffer is empty or has only an EOF chunk in it .
func (b *Buffer) Drained() bool {
	b.x__.Lock()
	defer b.x__.Unlock()
	if b.list.Len() != 1 {
		return false
	}
	if _, isEOF := b.list.Back().Value.(eof); isEOF {
		return true
	}
	return false
}
func ( b * Buffer ) Drained ( ) bool { b . x__ . Lock ( ) defer b . x__ . Unlock ( ) if b . list . Len ( ) != 1 { return false } if _ , isEOF := b . list . Back ( ) . Value . ( eof ) ; isEOF { return true } return false }
Drained returns true if no more writes are allowed on the connection and the buffer is empty or has only an EOF chunk in it.
Drained returns true if no more writes are allowed on the connection and the buffer is empty or has only an EOF chunk in it .