User contributions for Danilo

Jump to navigation Jump to search
Search for contributionsExpandCollapse
⧼contribs-top⧽
⧼contribs-date⧽
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)

18 January 2022

  • 23:5423:54, 18 January 2022 diff hist +559 N Modules/FileSystem/topointerCreated page with "__NOTOC__ This function returns the light-userdata representation of the object. This is the direct pointer into the Eir FileSystem module handle. ==Syntax== <syntaxhighlight lang="lua"> light-userdata fsnamespace.topointer( userdata obj ) </syntaxhighlight> ==Arguments== *'''obj''': the userdata of the Eir FileSystem Lua environment ==Returns== This function returns the light-userdata value of the internal object, false if not successful. ==Example== <syntaxhighligh..."
  • 23:5323:53, 18 January 2022 diff hist +731 N Modules/FileSystem/streamCompareCreated 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..."
  • 23:5123:51, 18 January 2022 diff hist +641 N Modules/FileSystem/pathToFilenameCreated page with "__NOTOC__ This function returns the filename and the direction portions of a filepath, seperated into two strings. ==Syntax== <syntaxhighlight lang="lua"> string, string fsnamespace.pathToFilename( string path, bool includeExtention ) </syntaxhighlight> ==Arguments== *'''path''': the file path to extract from *'''includeExtention''': if true then the filename extention is included in the result ==Returns== This function returns the filename and directory of the provid..."
  • 23:5023:50, 18 January 2022 diff hist +977 N Modules/FileSystem/copyStreamCountCreated 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 )..."
  • 23:4923:49, 18 January 2022 diff hist +838 N Modules/FileSystem/copyStreamCreated 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,..."
  • 23:4823:48, 18 January 2022 diff hist +710 N Modules/FileSystem/copyFileCreated page with "__NOTOC__ This function copies files between two translators. ==Syntax== <syntaxhighlight lang="lua"> bool fsnamespace.copyFile( translator srcTrans, string srcPath, translator dstTrans, string dstPath ) </syntaxhighlight> ==Arguments== *'''srcTrans:''' source translator for the file of origin *'''srcPath:''' path into the source translator *'''dstTrans:''' target translator *'''dstPath:''' path into the target translator ==Returns== This function returns true if the..."
  • 23:4623:46, 18 January 2022 diff hist +1,041 N Modules/FileSystem/createFileIterativeCreated page with "__NOTOC__ This function attempts to create a file with numeric iteration for filename collision avoidance. If a specific filename is taken then an the algorithm will try to create the next file with increased numeric insert. ==Syntax== <syntaxhighlight lang="lua"> file fsnamespace.createFileIterative( translator target, string prefix, string suffix, int maxIterations ) </syntaxhighlight> ==Arguments== *'''target''': the file translator based on which to create the file..."
  • 23:4423:44, 18 January 2022 diff hist +424 N Modules/FileSystem/createMemoryFileCreated page with "__NOTOC__ This function creates a single file that is resident entirely in system memory. ==Syntax== <syntaxhighlight lang="lua"> file fsnamespace.createMemoryFile( ) </syntaxhighlight> ==Returns== This function returns a new file object if successful, false otherwise. ==Example== <syntaxhighlight lang="lua"> -- TODO </syntaxhighlight> {{:Modules/FileSystem/namespace/functions}} {{:Modules/FileSystem/file/functions}}"
  • 23:4023:40, 18 January 2022 diff hist +3,225 N Modules/FileSystem/createTranslatorCreated page with "__NOTOC__ This function creates a FileSystem translator. A FileSystem translator represents a directory on a real or virtual filesystem. Through translators you get access to the files that reside in their directory trees. The translator returned by this function usually represents an OS filesystem directory. ==Syntax== <syntaxhighlight lang="lua"> translator fsnamespace.createTranslator( string rootPath ) </syntaxhighlight> ==Arguments== *'''rootPath:''' the absolute..."
  • 23:3223:32, 18 January 2022 diff hist +771 N Modules/FileSystem/createRAMDiskCreated page with "__NOTOC__ This function creates a FileSystem translator which is located entirely inside of MTA application memory, also known as RAM. ==Syntax== <syntaxhighlight lang="lua"> translator fsnamespace.createRAMDisk( bool caseSensitive ) </syntaxhighlight> ==Arguments== *'''caseSensitive:''' if true then all namespaces are compared case sensitively in path operations, otherwise strict character equality comparison is performed ==Returns== This function returns a new '''Fi..."

18 April 2021

24 October 2020

5 September 2020

2 September 2020

15 August 2020

10 August 2020

5 August 2020

26 July 2020

4 July 2020

3 June 2020

28 May 2020

24 May 2020

23 May 2020

13 May 2020

9 March 2020

28 February 2020

26 February 2020

5 February 2020

3 February 2020

13 January 2020

29 December 2019

25 December 2019

7 November 2019

28 October 2019

26 October 2019

15 October 2019

12 October 2019

8 October 2019

30 September 2019

29 September 2019

24 September 2019

20 September 2019

14 September 2019

6 September 2019

4 September 2019

27 August 2019

12 August 2019

11 August 2019

(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)