Object -
io
:
StringReader
Represents a reader which will wrap string content as a channel.
Constructor
__init
(string content, string encoding)
- content string
-
content which should be written
- encoding string UTF-8
-
encoding of the characters of the content
Methods
Reads string as json from reader.
-
Return Type
(json | Error) json or
Error
if any error occurred
Reads characters from the given string.
Parameters
- nCharacters int
-
read specific number of characters
-
Return Type
(string | Error | ()) string or
Error
if any error occurred