src/main/java/org/nustaq/serialization/coders/FSTBytezEncoder.java
@Override
    public void flush() throws IOException {
        if ( outStream != null )
            outStream.write(getBuffer(), 0, (int) pos);
        pos = 0;
    }
@Override
    public void flush() throws IOException {
        if ( outStream != null )
            outStream.write(getBuffer(), 0, (int) pos);
        pos = 0;
    }
@ Override public void flush ( ) throws IOException { if ( outStream != null ) outStream . write ( getBuffer ( ) , 0 , ( int ) pos ) ; pos = 0 ; }
writes current buffer to underlying output and resets buffer.
@throws IOException
writes current buffer to underlying output and resets buffer .