embdgen.plugins.content.RawContent

class embdgen.plugins.content.RawContent.RawContent[source]

Bases: BinaryContent

Raw binary content

It is up to the including content module, to decide what happens with the files.

CONTENT_TYPE = 'raw'
property file: Path

Path of the raw content file

property offset: SizeType

Offset into the input file.

This can be used, if the file has a header, that should be skipped.

In combination with RawRegion’s size attribute, this can also be used, to copy a specific part of a fle to the resulting image.

prepare() None[source]

Prepare content

This should calculate the size of the content and generate any files / information required by the owning class.

do_write(file: BufferedIOBase)[source]