writeArray

Writes an unidimensional array in a stream.

By default writes the array length as a ulong and then always the array content. While writeRange() already allows to write an array, there is no clue about its length. Additionally this function is more efficient.

void
writeArray
(
bool WriteLength = true
T
)
(
,
auto ref T t
)
if (
isArray!T &&
)

Parameters

WriteLength

When set to true (the default), the array length is written.

str
Type: Stream

The Stream where data are written.

t
Type: T

The array to write.

Meta