Baseclass for NIfTI1 header extensions.
This class is sufficient to handle very simple text-based extensions, such as comment. More sophisticated extensions should/will be supported by dedicated subclasses.
code : int|str
content : str
Return the canonical extension type code.
Return the extension content in its runtime representation.
Return the size of the extension in the NIfTI file.
Write header extensions to fileobj
Write starts at fileobj current file position.
fileobj : file-like object
byteswap : boolean