Object -
io :
WritableDataChannel
Represents a WritableDataChannel for writing data.
Constructor
__init
(WritableByteChannel byteChannel, ByteOrder bOrder)
- byteChannel WritableByteChannel
- bOrder ByteOrder BE
Methods
Writes 16 bit integer.
Writes 32 bit integer.
Writes 64 bit integer.
Writes 32 bit float.
Writes 64 bit float.
Writes boolean.
Writes a given string value to the respective channel.
Writes a variable length integer.
Closes the data channel.
Writes 16 bit integer.
Parameters
- value int
-
integer which will be written
-
Return Type
(Error?) nill if the content is written successfully or
Error
if any error occurred
Writes 32 bit integer.
Parameters
- value int
-
integer which will be written
-
Return Type
(Error?) nill if the content is written successfully or
Error
if any error occurred
Writes 64 bit integer.
Parameters
- value int
-
integer which will be written
-
Return Type
(Error?) nill if the content is written successfully or
Error
if any error occurred
Writes 32 bit float.
Parameters
- value float
-
float which will be written
-
Return Type
(Error?) nill if the float is written successfully or
Error
if any error occurred
Writes 64 bit float.
Parameters
- value float
-
float which will be written
-
Return Type
(Error?) nill if the float is written successfully or
Error
if any error occurred
Writes boolean.
Parameters
- value boolean
-
boolean which will be written
-
Return Type
(Error?) nill if the content is written successfully or
Error
if any error occurred
Writes a given string value to the respective channel.
Parameters
- value string
-
the value which should be written
- encoding string
-
the encoding which will represent the value string
-
Return Type
(Error?) nill if the content is written successfully or
Error
if any error occurred