Skip to contents

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.