src/main/java/org/michailov/async/io/AsyncCharEncoder.java
private void flushTempBuffer() {
        // Write bytes one by one. 
        // We may bail out due to like of space in the output byte buffer before the entire temp buffer has been flushed.   
        while (_byteRingBuffer.getAvailableToWrite() > 0) {
            if (_tempByteBuffer.position() < _tempByteBuffer.limit()) {
                byte b = _tempByteBuffer.get();
                _byteRingBuffer.write(b);
            }
            else {
                // The temp buffer has been flushed.
                _isTempBufferDirty = false;
                break;
            }
        }
    }
/**
     * Copies as many bytes as possible from the temp buffer to the output byte buffer. 
     */
Copies as many bytes as possible from the temp buffer to the output byte buffer.
Copies as many bytes as possible from the temp buffer to the output byte buffer .
private void flushTempBuffer() {
        while (_byteRingBuffer.getAvailableToWrite() > 0) {
            if (_tempByteBuffer.position() < _tempByteBuffer.limit()) {
                byte b = _tempByteBuffer.get();
                _byteRingBuffer.write(b);
            }
            else {
                _isTempBufferDirty = false;
                break;
            }
        }
    }
private void flushTempBuffer ( ) { while ( _byteRingBuffer . getAvailableToWrite ( ) > 0 ) { if ( _tempByteBuffer . position ( ) < _tempByteBuffer . limit ( ) ) { byte b = _tempByteBuffer . get ( ) ; _byteRingBuffer . write ( b ) ; } else { _isTempBufferDirty = false ; break ; } } }
Copies as many bytes as possible from the temp buffer to the output byte buffer.
Copies as many bytes as possible from the temp buffer to the output byte buffer .
// Write bytes one by one. 
 // We may bail out due to like of space in the output byte buffer before the entire temp buffer has been flushed.   
 // The temp buffer has been flushed.
