Object -
io :
ReadableByteChannel
ReadableByteChannel represents an input resource (i.e file, socket). which could be used to source bytes.
Methods
Source bytes from a given input/output resource.
Number of bytes returned will be < 0 if the file reached its end.
This operation will be asynchronous, where the total number of required bytes might not be returned at a given time.
io:EofError
will return once channel reach to it end.
Encodes a given ReadableByteChannel with Base64 encoding scheme.
Decodes a given ReadableByteChannel with Base64 encoding scheme.
Closes a given ReadableByteChannel.
Source bytes from a given input/output resource.
Number of bytes returned will be < 0 if the file reached its end.
This operation will be asynchronous, where the total number of required bytes might not be returned at a given time.
io:EofError
will return once channel reach to it end.
Parameters
- nBytes int
-
Positive integer. Represents the number of bytes which should be read
Encodes a given ReadableByteChannel with Base64 encoding scheme.
-
Return Type
(ReadableByteChannel | Error) Return an encoded ReadableByteChannel or
Error
if any error occurred
Decodes a given ReadableByteChannel with Base64 encoding scheme.
-
Return Type
(ReadableByteChannel | Error) Return a decoded ReadableByteChannel or
Error
if any error occurred