ByteBlock
ByteBlock is the base class for blocks that belong to a ByteInterval and store their bytes there.
Guaranteed Properties
- A ByteBlock is a Block.
- Each ByteBlock object must store an integral size that is readable and writable.
- Each ByteBlock must belong to either zero (0) or one (1) ByteInterval objects. The owning ByteInterval must be stored as a reference.
- This reference may be null, in which case the ByteBlock is freestanding and does not belong to any ByteInterval.
- If a ByteBlock belongs to a ByteInterval then it must be able to retrieve its offset in the ByteInterval.
- If a ByteBlock belongs to a ByteInterval that has an address then it must be able to retrieve its address, calculated as the ByteInterval address plus the ByteBlock offset.
API Implementations
The guaranteed functionality is provided as follows.
ByteBlock Classes
Size Getters/Setters
Associated ByteInterval
Get Associated ByteInterval
Language | Get Associated ByteInterval |
C++ | gtirb::ByteBlock::getByteInterval() |
Python | gtirb.ByteBlock.byte_interval |
Common Lisp | byte-interval (object code-block) => result, byte-interval (object data-block) => result |
ByteBlock Offset in Associated ByteInterval
ByteBlock Address
Links