Skip to contents

This class supports writing of bulk binary data to a connection

Constructor for BinaryWriter class

Usage

BinaryWriter(
  output,
  byte_offset,
  data_type,
  bytes_per_element,
  endian = .Platform$endian
)

Arguments

output

file name to write to or else a connection object

byte_offset

the number of bytes to skip at the start of output

data_type

R data type of binary elements

bytes_per_element

number of bytes in each data element (e.g. 4 or 8 for floating point numbers)

endian

endianness of binary output connection

Value

a new instance of type BinaryWriter

Slots

output

the binary output connection

byte_offset

the number of bytes to skip at the start of input

data_type

the dataType of the binary Elements

bytes_per_element

number of bytes in each data element (e.g. 4 or 8 for floating point numbers)

endian

endianness of binary output connection