These classes convert from a lf.win.ctypes object to an object from the Python standard library.
Converts a GUID to a UUID.
Creates a UUID object from a stream.
| Parameters: | |
|---|---|
| Return type: | UUID |
| Returns: | The corresponding UUID object. |
Creates a UUID object from a ctype.
| Parameter: | ctype (guid_le or guid_be) – A GUID object. |
|---|---|
| Return type: | UUID |
| Returns: | The corresponding UUID object. |
Creates a UUID object from individual GUID fields.
| Parameters: |
|
|---|---|
| Return type: | UUID |
| Returns: | The corresponding UUID object. |
Converts a CLSID to a UUID.
Creates a UUID object from a stream.
| Parameters: | |
|---|---|
| Return type: | UUID |
| Returns: | The corresponding UUID object. |
Converts a DECIMAL to a Decimal.
Creates a Decimal object from a stream.
| Parameters: | |
|---|---|
| Return type: | Decimal |
| Returns: | The corresponding Decimal object. |
Creates a Decimal object from a ctype.
| Parameter: | ctype (decimal_le or decimal_be) – A DECIMAL object. |
|---|---|
| Raises ValueError: | |
| If the DECIMAL object is invalid. | |
| Return type: | Decmial |
| Returns: | The corresponding Decimal object. |
Converts a CURRENCY data type to a Decimal.
Creates a Decimal object from a stream.
| Parameters: | |
|---|---|
| Return type: | Decimal |
| Returns: | The corresponding Decmial object. |
Creates a Decimal object from an int.
| Parameter: | integer (int) – The value of the CURRENCY object. |
|---|---|
| Return type: | Decimal |
| Returns: | The corresponding Decimal object. |
The following classes subclass lf.dtypes.ActiveStructuple to provide a Python data type not found in the standard library.
Represents a Locale ID data type.
Represents and HRESULT data type.
Creates a HRESULT object from a stream.
| Parameters: | |
|---|---|
| Return type: | |
| Returns: | The extracted HRESULT object. |
Creates a HRESULT object from a ctype.
| Parameter: | ctype (hresult_le or hresult_be) – A hresult object. |
|---|---|
| Return type: | HRESULT |
| Returns: | The corresponding HRESULT object. |