MTA:Eir/FileSystem/streamCompare
Jump to navigation
Jump to search
This function compares the bytes of two streams for equality. The comparison starts from the current file seek and finishes at the end of the respective file stream. If the read count of either stream does not match the other, then this function fails.
Syntax
bool fsnamespace.streamCompare( file left, file right )
Arguments
- left: first file for equality comparison
- right: second file for equality comparison
Returns
This function returns true if the data stream was equal, false otherwise.
Example
-- TODO
FileSystem Namespace Functions
- createTranslator
- createRAMDisk
- createMemoryFile
- createFileIterative
- createArchiveTranslator (not module)
- createZIPArchive (not module)
- copyFile
- copyStream
- copyStreamCount
- pathToFilename
- streamCompare
- topointer
- type
- setDoBufferAllRaw
- getDoBufferAllRaw