CSJ2K.j2k.io.BufferedRandomAccessFile.flush C# (CSharp) Méthode

flush() public méthode

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
Résultat void
        public void flush()
        {
            if (byteBufferChanged)
            {
                theFile.Seek(offset, System.IO.SeekOrigin.Begin);
                theFile.Write(byteBuffer, 0, maxByte);
                byteBufferChanged = false;
            }
        }