class documentation
class VoidType(_Type):
Special type that represents the void type.
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 | as |
Cast this type to a RawBuffer so that it can be read as a series of bytes. |
Method | _construct |
Return the underlying construct instance |
Inherited from Type
:
Method | description |
The short description of this type. |
Method | is |
Whether the context argument needed by some methods actually has an effect. |
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. |
Method | _resolve |
Uses the resolver to return a resolved version of the type, if possible. |
def __str__(self):
Returns the nicely printable string representation of this instance.
Returns | |
str | Undocumented |
def as_bytes(self, size):
Cast this type to a RawBuffer
so that it can be read as a series of bytes.
Information
Parameters | |
size:int | the size in bytes of the desired RawBuffer. Since the VoidType is not aware of the size the type should have, this parameter allows to specify it. |
Returns | |
_RawBuffer | Undocumented |
def _construct_type(self, context=None):
overrides
reven2.types._type.Type._construct_type
Return the underlying construct instance
Parameters | |
context:_Optional[ | Undocumented |
Returns | |
_construct.core.Construct | Undocumented |