gtirb.offset module

class gtirb.offset.Offset(element_id, displacement)[source]

Bases: NamedTuple

An Offset describes a location inside a gtirb.Node, such as a gtirb.DataBlock or gtirb.ByteInterval.

Variables:
  • ~.element_id – The gtirb.Node containing the location of interest.

  • ~.displacement – The offset inside the Node to point to.