Modules/FileSystem/streamCompare: Difference between revisions

From Multi Theft Auto: Wiki
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 difference)

Revision as of 23:53, 18 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

FileSystem File Functions