// writes a single chunk to the underlying writer.
writes a single chunk to the underlying writer.
// writes a single chunk to the underlying writer .
func (w *Writer2) writeChunk() error {
	u := int(uncompressedHeaderLen + w.encoder.Compressed())
	c := headerLen(w.ctype) + w.buf.Len()
	if u < c {
		return w.writeUncompressedChunk()
	}
	return w.writeCompressedChunk()
}
func ( w * Writer2 ) writeChunk ( ) error { u := int ( uncompressedHeaderLen + w . encoder . Compressed ( ) ) c := headerLen ( w . ctype ) + w . buf . Len ( ) if u < c { return w . writeUncompressedChunk ( ) } return w . writeCompressedChunk ( ) }
writes a single chunk to the underlying writer.
writes a single chunk to the underlying writer .