class RawBuffer(Array):
A specialized Array
containing U8 ([U8; n]
).
Useful to express that memory is read as an "untyped" buffer of bytes.
Method | __init__ |
Construct an array of type ty and count count . |
Inherited from Array
:
Method | parse |
Parses the value of an instance of this type from a raw buffer, possibly depending on the context. |
Property | count |
Property: The number of elements in the array. |
Property | inner |
Property: The type of element of the array. |
Method | is_context_sensitive |
Whether the context argument needed by some methods actually has an effect. |
Instance Variable | _inner |
Undocumented |
Instance Variable | _count |
Undocumented |
Method | _construct_type |
Return the underlying construct instance |
Inherited from Type
(via Array
):
Method | size_bytes |
The minimal number of bytes necessary to hold an instance of this type, possibly depending on the context. |
reven2.types._array.Array.__init__
Construct an array of type ty
and count count
.
An array of 4 contiguous 64 bits unsigned integers: >>> U64_4 = types.Array(types.U64, 4)
Parameters | count | The number of elements in the resulting array type. |
ty | The type of element in the resulting array type. | |
Raises | ValueError | if count < 0. |