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)

23 January 2022

19 January 2022

  • 03:5103:51, 19 January 2022 diff hist +1,368 N Modules/FileSystem/file/functionsCreated page with "==FileSystem File Functions== *read *readByte *readUByte *readShort *readUShort *readInt *readUInt *readFloat *Modules/FileSystem/file/readDouble|readDoub..."
  • 03:4903:49, 19 January 2022 diff hist +1,290 N Modules/FileSystem/file/isReadableCreated page with "__NOTOC__ This function returns whether a stream is readable. If a stream is not readable, then all read operations should result in nil operations (they will return zero bytes read or false if value reading). This state should be immutable across the lifetime of a file/stream class. ==Syntax== <syntaxhighlight lang="lua"> boolean file:isReadable () </syntaxhighlight> ==Returns== Returns '''true''' if the file/stream is readable, '''false''' otherwise. ==Example== <se..."
  • 03:4903:49, 19 January 2022 diff hist +1,120 N Modules/FileSystem/file/isWritableCreated page with "__NOTOC__ This function returns whether a stream is writable. If a stream is not writable, then all write operations should result in nil operations (they will return zero bytes written). This state should be immutable across the lifetime of a file/stream class. ==Syntax== <syntaxhighlight lang="lua"> boolean file:isWritable () </syntaxhighlight> ==Returns== Returns '''true''' if the file/stream is writable, '''false''' otherwise. ==Example== <section name="Client" cl..."
  • 03:4803:48, 19 January 2022 diff hist +1,548 N Modules/FileSystem/file/flushCreated page with "__NOTOC__ This function writes all temporary buffers of a file/stream object into the output storage. This feature shall be interpreted as a hint, not a necessity. Implementations do not have to support this feature. ==Syntax== <syntaxhighlight lang="lua"> boolean file:flush () </syntaxhighlight> ==Returns== Returns '''true''' if the file/stream has been successfully flushed, '''false''' otherwise. ==Example== <section name="Client" class="client" show="true"> This sn..."
  • 03:4703:47, 19 January 2022 diff hist +1,530 N Modules/FileSystem/file/eofCreated page with "__NOTOC__ This function returns whether the runtime can still read data from the file/stream. This is an implementation defined state that should return false if no data can be immediately received using '''read operations'''. Asynchronous file/stream objects could use this function to return true when new data is available to receive from the socket. If wanting to read an entire file/stream object, this function is more reliable than the MTA:Eir/FileSystem/file/size|f..."
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)