read.fixed.char.binary: Read fixed length char, possibly containing embedded zeroes,...

View source: R/nifti_common.R

read.fixed.char.binaryR Documentation

Read fixed length char, possibly containing embedded zeroes, from binary file.

Description

Read fixed length char, possibly containing embedded zeroes, from binary file.

Usage

read.fixed.char.binary(filehandle, n, to = "UTF-8")

Arguments

filehandle

connection to read.

n

the number of bytes to read.

to

the target character encoding.

Value

the string in the target encoding, with the embedded zeroes removed.

Author(s)

The original version was written by Brandon Whitcher and Volker Schmid. See the source for the full legal info. The coding style was adapted to freesurferformats and the docs were added by Tim Schäfer.


freesurferformats documentation built on May 29, 2024, 5:29 a.m.