ankh v0.6.0 Ankh.Frame.Utils
Utility functions for encoding/decoding values
Link to this section Summary
Functions
Converts a boolean into the corresponding 0/1 integer values
Converts 0/1 integers into the corresponding boolean values
Link to this section Functions
Link to this function
bool_to_int!(bool)
bool_to_int!(bool)
bool_to_int!(boolean()) :: 0 | 1
bool_to_int!(boolean()) :: 0 | 1
Converts a boolean into the corresponding 0/1 integer values
Raises on wrong arguments
Link to this function
int_to_bool!(int)
int_to_bool!(int)
int_to_bool!(0 | 1) :: boolean()
int_to_bool!(0 | 1) :: boolean()
Converts 0/1 integers into the corresponding boolean values
Raises on wrong arguments