func NewBuffer(flushLimit int) *Buffer {
	buffer := &Buffer{flushLimit: flushLimit, closed: false}
	buffer.flushCondition = sync.NewCond(buffer)

	return buffer
}
// NewBuffer returns new packet buffer with fixed flush limit
NewBuffer returns new packet buffer with fixed flush limit
// NewBuffer returns new packet buffer with fixed flush limit
func NewBuffer(flushLimit int) *Buffer {
	buffer := &Buffer{flushLimit: flushLimit, closed: false}
	buffer.flushCondition = sync.NewCond(buffer)
	return buffer
}
func NewBuffer ( flushLimit int ) * Buffer { buffer := & Buffer { flushLimit : flushLimit , closed : false } buffer . flushCondition = sync . NewCond ( buffer ) return buffer }
NewBuffer returns new packet buffer with fixed flush limit
NewBuffer returns new packet buffer with fixed flush limit