API reference
python:astx:astx.BufferViewIndex
class BufferViewIndex
BufferViewIndex(base: astx.AST, indices: Sequence[astx.AST])
Source: packages/astx/src/astx/buffer.py:121
Declared as: python:astx:astx.buffer.BufferViewIndex
Internal low-level indexed read through a buffer view.
Reads one scalar element by computing offset_bytes plus the sum of index*stride byte offsets over the canonical buffer view descriptor.
Attributes
-
base — Type: astx.AST
-
indices — Type: list[astx.AST]
-
type_ — Type: astx.DataType
Methods
-
__init__ — Initialize one low-level indexed read.
-
get_struct — Return the structured representation.