Modules/FileSystem/streamCompare

From Multi Theft Auto: Wiki
Revision as of 04:00, 23 January 2022 by Danilo (talk | contribs)
(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