API reference
python:astx:astx.buffer.BufferViewWrite
class BufferViewWrite
BufferViewWrite(view: astx.AST, value: astx.AST, *, byte_offset: int = 0)
Source: packages/astx/src/astx/buffer.py:230
Internal low-level raw byte write through a buffer view.
Writes one 8-bit integer at offset_bytes + byte_offset. This is not a generic typed element store or user-facing array mutation API.
Attributes
-
view — View.; Type: astx.AST
-
value — Stored value.; Type: astx.AST
-
byte_offset — Byte offset.; Type: int
-
type_ — Type associated with this expression.; Type: astx.Int32
-
loc — Type: SourceLocation
-
kind — Type: ASTKind
-
comment — Type: str
-
parent — Type: Optional[ASTNodes]
-
ref — Type: str
-
nbytes — Type: int
-
name — Type: str
-
_tmp_id — Type: int
Methods
-
__init__ — Initialize one low-level view write.
-
get_struct — Return the structured representation.