[About] Version=1.0 Author=Nic Mail=support@hiasm.com [Type] Class=Element Info=Exposes a Stream around a file, supporting both synchronous and asynchronous read and write operations. [Property] FileStream=Sets a FileStream object that implements methods. ARG(FileStream)|20|(empty)|FileStream Offset=Sets the byte offset in array at which to operate. ARG(int)|1|0 Count=Sets the maximum number of bytes to operate. ARG(int)|1|0 NumBytes=Sets the range to be operate. ARG(long)|2| FlushToDisk=Sets a value indicating whether to flush all intermediate file buffers. ARG(bool)|14|1|true,false Origin=Sets the beginning, the end, or the current position as a reference point for seeking. ARG(SeekOrigin)|14|0|Begin,Current,End Security=Sets the access control and audit security for the file. ARG(FileSecurity)|20|(empty)|FileSecurity [Methods] *doFlush=Clears buffers for this stream and causes any buffered data to be written to the file. ARG()|1|0 *doFlush2=Clears buffers for this stream and causes any buffered data to be written to the file, and also clears all intermediate file buffers. ARG(bool flushToDisk)|1|0 *doLock=Prevents other processes from reading from or writing to the FileStream. ARG(long pos, long numBytes)|1|0 *doPosition=Sets the current position of this stream. ARG(long pos)|1|0 doRead=Reads a block of bytes from the stream and writes the data in a given buffer. ARG(int offset, int count)|1|0 *doSeek=Sets the current position of this stream to the given value. ARG(long pos, SeekOrigin origin)|1|0 *doSetAccessControl=Applies access control list entries described by a FileSecurity object to the file described by the current FileStream object. ARG(FileSecurity fileSecurity)|1|0 *doSetLength=Sets the length of this stream to the given value. ARG(long numBytes)|1|0 *doUnlock=Allows access by other processes to all or part of a file that was previously locked. ARG(long pos, long numBytes)|1|0 doWrite=Writes a block of bytes to this stream using data from a buffer. ARG(byte[] array, int offset, int count)|1|0 *doWriteByte=Writes a byte to the current position in the file stream. ARG(byte value)|1|0 onRead=Occurs after invoke the method doRead and returns the result. ARG(byte[])|2|13 onError=If an error occurs, an error message appears. ARG(string)|2|2 *onSeek=Occurs after invoke the method doSeek and returns the result. ARG(long)|2|105 Position=Returns the current position of this stream. ARG(long)|3|105 Length=Returns the length in bytes of the stream. ARG(long)|3|105 *ReadByte=Reads a byte from the file and advances the read position one byte. ARG(int)|3|1 *Result=Returns the total number of bytes read into the buffer. ARG(int)|3|1 FileStream=Defines a FileStream object that implements methods. ARG(FileStream)|4|0 Array=Defines the buffer to write to the stream. ARG(byte[])|4|13 Offset=Defines the byte offset in array at which to begin reading. ARG(int)|4|1 Count=Defines the maximum number of bytes to read. ARG(int)|4|1 *security=Defines the access control and audit security for the file. ARG(FileSecurity)|4|0 *flushToDisk=Defines a value indicating whether to flush all intermediate file buffers. ARG(bool)|4|104 *numBytes=Defines the number of bytes to operate. ARG(long)|4|105 *origin=Defines the beginning, the end, or the current position as a reference point for seeking. ARG(SeekOrigin)|4|0 *pos=Defines the current position of this stream. ARG(long)|4|105 *value=Defines the byte to write to the stream. ARG(byte)|4|1