Package genlayer.py.storage._internal.core#
Warning
This is an internal module
- class genlayer.py.storage._internal.core.Indirection[source]#
This class provides ability to save data at its own slot. Occupies 1 byte to prevent collision.
- class genlayer.py.storage._internal.core.IndirectionTypeDesc[source]#
-
- set(slot: Slot, off: int, val: Indirection) None[source]#
Method that writes value to slot and offset pair
- class genlayer.py.storage._internal.core.InmemSlot[source]#
In-memory storage slot which can be used to create storage entities without “Host”
- class genlayer.py.storage._internal.core.PseudoSequence[source]#
Class that supports indexing elements but not slicing
- __init__(*args, **kwargs)#
- class genlayer.py.storage._internal.core.TypeDesc[source]#
Basic type description
- copy_actions: list[CopyAction]#
actions that must be executed for copying this data
intrepresentsmemcpy
- abstract get(slot: Slot, off: int) T[source]#
Method that reads value from slot and offset pair
- Return type:
T
- class genlayer.py.storage._internal.core.VLA[source]#
Variable Length Array. Can be used in pair with
Indirectionto save length at the same place as data. Can also be used in C language way. Occupies at least 4 bytes (for length)