Modules/FileSystem/createRAMDisk: Difference between revisions
Jump to navigation
Jump to search
(Created 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...") |
No edit summary |
||
Line 1: | Line 1: | ||
<pageclass class="#e36242" subcaption="Namespace function"></pageclass> | |||
__NOTOC__ | __NOTOC__ | ||
This function creates a FileSystem translator which is located entirely inside of MTA application memory, also known as RAM. | This function creates a FileSystem translator which is located entirely inside of MTA application memory, also known as RAM. |
Latest revision as of 03:54, 23 January 2022
This function creates a FileSystem translator which is located entirely inside of MTA application memory, also known as RAM.
Syntax
translator fsnamespace.createRAMDisk( bool caseSensitive )
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 FileSystem translator that can be used to store (temporary) files in. If the creation of the ramdisk has failed, then false is returned.
Example
-- TODO
FileSystem Namespace Functions
- createTranslator
- createRAMDisk
- createMemoryFile
- createFileIterative
- copyFile
- copyStream
- copyStreamCount
- pathToFilename
- streamCompare
- topointer
- type
- setDoBufferAllRaw
- getDoBufferAllRaw