CSJ2K.j2k.io.BufferedRandomAccessFile.flush C# (CSharp) Method

flush() public method

Any data that has been buffered must be written (including buffering at the bit level), and the stream should be realigned at the byte level.
If an I/O error ocurred. /// ///
public flush ( ) : void
return void
        public void flush()
        {
            if (byteBufferChanged)
            {
                theFile.Seek(offset, System.IO.SeekOrigin.Begin);
                theFile.Write(byteBuffer, 0, maxByte);
                byteBufferChanged = false;
            }
        }