Modules/FileSystem/streamCompare: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ 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== <syntaxhighlight lang="lua"> bool fsnamespace.streamCompare( file left, file right ) </syntaxhighlight> ==Arguments== *'''left''': first file for equality comparison *'''right''': second file for equ...") |
No edit summary |
||
Line 1: | Line 1: | ||
<pageclass class="#e36242" subcaption="Namespace function"></pageclass> | |||
__NOTOC__ | __NOTOC__ | ||
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. | 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. |
Latest revision as of 04:00, 23 January 2022
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
- copyFile
- copyStream
- copyStreamCount
- pathToFilename
- streamCompare
- topointer
- type
- setDoBufferAllRaw
- getDoBufferAllRaw