func (d *DriverBuffer) Reset() {
	// shrink buffer if less than half used
	half := len(d.buf) / 2
	if d.off <= half && half >= minBufferSize {
		d.buf = make([]ConnectionStats, half)
	}
	d.off = 0
}
// Reset returns the written object count back to zero. It may resize the internal buffer based on past usage.
Reset returns the written object count back to zero. It may resize the internal buffer based on past usage.
// Reset returns the written object count back to zero . It may resize the internal buffer based on past usage .
func (d *DriverBuffer) Reset() {
	half := len(d.buf) / 2
	if d.off <= half && half >= minBufferSize {
		d.buf = make([]ConnectionStats, half)
	}
	d.off = 0
}
func ( d * DriverBuffer ) Reset ( ) { half := len ( d . buf ) / 2 if d . off <= half && half >= minBufferSize { d . buf = make ( [ ] ConnectionStats , half ) } d . off = 0 }
Reset returns the written object count back to zero.
Reset returns the written object count back to zero .
// shrink buffer if less than half used