class documentation

Converter for the imaginary part of complex numbers

Imaginary parts are instances of RealEntry. Updating the imaginary part of a complex entry updates the type of the entire entry.

Class Method get Converts bytes -> RealEntry
Class Method set Converts RealEntry -> bytes
def get(cls, data: bytes, *, instance=None) -> RealEntry: (source)

Converts bytes -> RealEntry

Parameters
data:bytesThe raw bytes to convert
instanceThe instance containing the data section
Returns
RealEntryThe imaginary part of data converted to the appropriate type
def set(cls, value: RealEntry, *, instance=None, **kwargs) -> bytes: (source)

Converts RealEntry -> bytes

Parameters
value:RealEntryThe value to convert
instanceThe instance containing the data section
**kwargsUndocumented
Returns
bytesThe data of value