Expand description
Relative pointer implementations and options.
Structs§
- RawRel
Ptr - An untyped pointer which resolves relative to its position in memory.
- RelPtr
- A pointer which resolves to relative to its position in memory.
Enums§
- Offset
Error - An error where the distance between two positions cannot be represented by the offset type.
- RelPtr
Error - Errors that can occur while creating raw relative pointers.
Traits§
Functions§
- signed_
offset - Calculates the offset between two positions as an
isize
.
Type Aliases§
- RawRel
PtrI8 - A raw relative pointer that uses an archived
i8
as the underlying offset. - RawRel
PtrI16 - A raw relative pointer that uses an archived
i16
as the underlying offset. - RawRel
PtrI32 - A raw relative pointer that uses an archived
i32
as the underlying offset. - RawRel
PtrU8 - A raw relative pointer that uses an archived
u8
as the underlying offset. - RawRel
PtrU16 - A raw relative pointer that uses an archived
u16
as the underlying offset. - RawRel
PtrU32 - A raw relative pointer that uses an archived
u32
as the underlying offset.