class documentation
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 a RawBuffer from its count. |
Inherited from Array:
| Method | __eq__ |
Compares the instance for equality with an object. |
| Method | __hash__ |
Returns the hash for this value. |
| Method | __ne__ |
Compares the instance for equality with an object. |
| Method | __str__ |
Returns the nicely printable string representation of this instance. |
| Method | is |
Whether the context argument needed by some methods actually has an effect. |
| Property | count |
Property: The number of elements in the array. |
| Property | inner |
Property: The type of element of the array. |
| Method | _construct |
Return the underlying construct instance |
| Method | _decode |
Undocumented |
| Method | _encode |
Undocumented |
| Method | _resolve |
Uses the resolver to return a resolved version of the type, if possible. |
| Instance Variable | _count |
Undocumented |
| Instance Variable | _inner |
Undocumented |
Inherited from Type (via Array):
| Method | description |
The short description of this type. |
| Method | parse |
Parses the value of an instance of this type from a raw buffer, possibly depending on the context. |
| Method | size |
The minimal number of bytes necessary to hold an instance of this type, possibly depending on the context. |
| Method | to |
Build a byte buffer from a value of this type. |
def __init__(self, count):
overrides
reven2.types._array.Array.__init__Construct a RawBuffer from its count.
| Parameters | |
count:int | Undocumented |