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

View source: R/nifti2_extensions.R

nifti2.extension.contentR Documentation

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)

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.

Value

a raw vector, the payload of the extension.

See Also

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


freesurferformats documentation built on Sept. 25, 2026, 1:07 a.m.