BinaryReader: BinaryReader

View source: R/binary_io.R

BinaryReaderR Documentation

BinaryReader

Description

Constructor for BinaryReader class

Usage

BinaryReader(
  input,
  byte_offset,
  data_type,
  bytes_per_element,
  endian = .Platform$endian,
  signed = TRUE
)

Arguments

input

file name to read from or else a connection object

byte_offset

the number of bytes to skip at the start of input

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 input connection

signed

whether the element is signed (TRUE) or unsigned (FALSE)

Value

a new instance of type BinaryReader


bbuchsbaum/neuroim2 documentation built on April 20, 2024, 4:20 p.m.