Modules/FileSystem/copyStreamCount: Difference between revisions
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. The copy is only performed up to a specified count of bytes. 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.copyStreamCount( file src, file dst, int count )...") |
No edit summary |
||
Line 1: | Line 1: | ||
<pageclass class="#e36242" subcaption="Namespace function"></pageclass> | |||
__NOTOC__ | __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. The copy is only performed up to a specified count of bytes. | 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. The copy is only performed up to a specified count of bytes. |
Latest revision as of 03:59, 23 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. The copy is only performed up to a specified count of bytes.
Read operations on the file streams advance the seek pointers. Thus the seek pointers stay changed after the function has completed.
Syntax
bool fsnamespace.copyStreamCount( file src, file dst, int count )
Arguments
- src: source of the copy operation, starting from the seek pointer
- dst: target of the copy operation, starting from the seek pointer
- count: the amount of bytes to copy (has to be above 0)
Returns
This function returns true if the copy operation has completed successfully, false otherwise.
Example
-- TODO
FileSystem Namespace Functions
- createTranslator
- createRAMDisk
- createMemoryFile
- createFileIterative
- copyFile
- copyStream
- copyStreamCount
- pathToFilename
- streamCompare
- topointer
- type
- setDoBufferAllRaw
- getDoBufferAllRaw