Learn R Programming

freesurferformats (version 1.1.0)

nifti2.extension.content: Get the payload of a NIFTI v2 header extension as raw bytes.

Description

Get the payload of a NIFTI v2 header extension as raw bytes.

Usage

nifti2.extension.content(extension, strip_nul = TRUE)

Value

a raw vector, the payload of the extension.

Arguments

extension

a NIFTI v2 header extension, a named list with entries 'ecode' and 'content', see nifti2.extension.

strip_nul

logical, whether to remove NUL bytes from the payload. This is required to convert the payload to a character string.

See Also

Other nifti2 extensions: nifti2.extension(), nifti2.extension.size(), nifti2.extension.text(), nifti2.get.extension()