IBinaryWriter

Description

interface Tinman.Core.IO.IBinaryWriter

Base interface for classes that sequentially write data to a binary stream.

The methods of this interface write multibyte values which are affected by byte order.

Public / Methods

Write​Char


public method WriteChar → (1)

value in : char

The value to write.

Writes an unsigned 16-bit UTF-16 code unit to the stream.

IOException

If an I/O error has occurred.

Write​Chars


public method WriteChars → (3)

array in : char [ ]

[not-null]
The input array.

offset in : int32

[>=0]
Index of first array element to read.

count in : int32

[>=0]
Number of values to write.

Writes unsigned 16-bit UTF-16 code units to the data stream.

Calling this method is equivalent to calling WriteChar sequentially for each element in the given array in segment but may be implemented in a more efficient way.

IOException

If an I/O error has occurred.

Write​Float32


public method WriteFloat32 → (1)

value in : float32

The value to write.

Writes a 32-bit floating point value to the data stream.

IOException

If an I/O error has occurred.

Write​Float32s


public method WriteFloat32s → (3)

array in : float32 [ ]

[not-null]
The input array.

offset in : int32

[>=0]
Index of first array element to read.

count in : int32

[>=0]
Number of values to write.

Writes 32-bit floating point values to the data stream.

Calling this method is equivalent to calling WriteFloat32 sequentially for each element in the given array in segment but may be implemented in a more efficient way.

IOException

If an I/O error has occurred.

Write​Float64


public method WriteFloat64 → (1)

value in : float64

The value to write.

Writes a 64-bit floating point value to the data stream.

IOException

If an I/O error has occurred.

Write​Float64s


public method WriteFloat64s → (3)

array in : float64 [ ]

[not-null]
The input array.

offset in : int32

[>=0]
Index of first array element to read.

count in : int32

[>=0]
Number of values to write.

Writes 64-bit floating point values to the data stream.

Calling this method is equivalent to calling WriteFloat64 sequentially for each element in the given array in segment but may be implemented in a more efficient way.

IOException

If an I/O error has occurred.

Write​Int16


public method WriteInt16 → (1)

value in : int16

The value to write.

Writes a signed 16-bit integer value to the data stream.

IOException

If an I/O error has occurred.

Write​Int16s


public method WriteInt16s → (3)

array in : int16 [ ]

[not-null]
The input array.

offset in : int32

[>=0]
Index of first array element to read.

count in : int32

[>=0]
Number of values to write.

Writes signed 16-bit integer values to the data stream.

Calling this method is equivalent to calling WriteInt16 sequentially for each element in the given array in segment but may be implemented in a more efficient way.

IOException

If an I/O error has occurred.

Write​Int32


public method WriteInt32 → (1)

value in : int32

The value to write.

Writes a signed 32-bit integer value to the data stream.

IOException

If an I/O error has occurred.

Write​Int32s


public method WriteInt32s → (3)

array in : int32 [ ]

[not-null]
The input array.

offset in : int32

[>=0]
Index of first array element to read.

count in : int32

[>=0]
Number of values to write.

Writes signed 32-bit integer values to the data stream.

Calling this method is equivalent to calling WriteInt32 sequentially for each element in the given array in segment but may be implemented in a more efficient way.

IOException

If an I/O error has occurred.

Write​Int64


public method WriteInt64 → (1)

value in : int64

The value to write.

Writes a signed 64-bit integer value to the data stream.

IOException

If an I/O error has occurred.

Write​Int64s


public method WriteInt64s → (3)

array in : int64 [ ]

[not-null]
The input array.

offset in : int32

[>=0]
Index of first array element to read.

count in : int32

[>=0]
Number of values to write.

Writes signed 64-bit integer values to the data stream.

Calling this method is equivalent to calling WriteInt64 sequentially for each element in the given array in segment but may be implemented in a more efficient way.

IOException

If an I/O error has occurred.