cnc_conversion_info
-
struct cnc_conversion_info
A structure which tracks information about the final opened cnc_conversion handle.
Remark
This structure is the only time the collection of cnc_conversion creating and opening functions will return information about whether or not it uses an indirect conversion and that conversion’s properties.
Public Members
-
const ztd_char8_t *from_code_data
A pointer to the the
from_code
data.Remark
This will always be a null-terminated pointer, but does not guarantee there may not be embedded nulls.
-
size_t from_code_size
The size of the
from_code
data.
-
const ztd_char8_t *to_code_data
A pointer to the the
to_code
data.Remark
This will always be a null-terminated pointer, but does not guarantee there may not be embedded nulls.
-
size_t to_code_size
The size of the
to_code
data.
-
bool is_indirect
Whether or not this conversion uses an indirect conversion.
Remark
An indirect conversion goes through an intermediate encoding to reach it’s final destination. This is typical for most conversions which encoding to and from some form of Unicode, but do not translate to each other.
-
const ztd_char8_t *indirect_code_data
The name of the indirect encoding.
Remark
This is
nullptr
if is_indirect is false. If it is notnullptr
, this will be a null-terminated pointer. But, it does not guarantee there may not be embedded nulls.
-
size_t indirect_code_size
The size of the
indirect_code
data.Remark
This is 0 if is_indirect is false.
-
const ztd_char8_t *from_code_data