MTA:Eir/FileSystem/copyStream: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ This function copies data starting from a source file stream into a specified destination stream. The copy of data is performed starting from the source file seek. Read operations on the file streams advance the seek pointers. Thus the seek pointers stay changed after the function has completed. ==Syntax== <syntaxhighlight lang="lua"> bool fsnamespace.copyStream( file src, file dst ) </syntaxhighlight> ==Arguments== *'''src''': source of the copy operation,...")
 
mNo edit summary
 
Line 22: Line 22:
{{:MTA:Eir/FileSystem/namespace/functions}}
{{:MTA:Eir/FileSystem/namespace/functions}}


{{:MTA:Eir/FileSystem/translator/functions}}
{{:MTA:Eir/FileSystem/file/functions}}

Latest revision as of 22:49, 16 January 2022

This function copies data starting from a source file stream into a specified destination stream. The copy of data is performed starting from the source file seek.

Read operations on the file streams advance the seek pointers. Thus the seek pointers stay changed after the function has completed.

Syntax

bool fsnamespace.copyStream( file src, file dst )

Arguments

  • src: source of the copy operation, starting from the seek pointer
  • dst: target of the copy operation, starting from the seek pointer

Returns

This function returns true if the copy operation has completed successfully, false otherwise.

Example

-- TODO

FileSystem Namespace Functions

FileSystem File Functions