Object -
io
:
WritableDataChannel
Represents a WritableDataChannel for writing data.
Constructor
__init
(WritableByteChannel byteChannel, ByteOrder bOrder)
- byteChannel WritableByteChannel
-
channel which would represent the source to read/write data
- bOrder ByteOrder <BE|LE> BE
-
network byte order
Methods
io:Error? err = dataChannel.writeInt16(length);
Parameters
- value int
-
The integer, which will be written
-
Return Type
(Error?) ()
if the content is written successfully or else anio:Error
if any error occurred
io:Error? err = dataChannel.writeInt32(length);
Parameters
- value int
-
The integer, which will be written
-
Return Type
(Error?) ()
if the content is written successfully or elseio:Error
if any error occurred
io:Error? err = dataChannel.writeInt64(length);
Parameters
- value int
-
The integer, which will be written
-
Return Type
(Error?) ()
if the content is written successfully or elseio:Error
if any error occurred
io:Error? err = dataChannel.writeFloat32(3.12);
Parameters
- value float
-
The float, which will be written
-
Return Type
(Error?) ()
if the float is written successfully or elseio:Error
if any error occurred
io:Error? err = dataChannel.writeFloat32(3.12);
Parameters
- value float
-
The float, which will be written
-
Return Type
(Error?) ()
if the float is written successfully or elseio:Error
if any error occurred
io:Error? err = dataChannel.writeInt64(length);
Parameters
- value boolean
-
The boolean, which will be written
-
Return Type
(Error?) ()
if the content is written successfully or elseio:Error
if any error occurred
io:Error? err = dataChannel.writeString(record);
Parameters
- value string
-
The value, which should be written
- encoding string
-
The encoding, which will represent the value string
-
Return Type
(Error?) ()
if the content is written successfully or elseio:Error
if any error occurred
io:Error? err = dataChannel.writeVarInt(length);
Parameters
- value int
-
The int, which will be written
-
Return Type
(Error?) The value of the integer, which is written or else
io:Error
if any error occurred