Modules/FileSystem/streamCompare

From Multi Theft Auto: Wiki
Revision as of 23:53, 18 January 2022 by Danilo (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

FileSystem File Functions