|
moreinttypes 1.9.0
Minimal library of enhanced integer types for C
|
Encapsulates an unsigned 8-bit integer. More...
Data Fields | |
| const uint8_t | value |
| The underlying value of this Byte. | |
| void(* | add )(struct Byte *const restrict, uint8_t) |
| Adds the given amount to the value of this Byte. | |
| void(* | sub )(struct Byte *const restrict, uint8_t) |
| Subtracts the given amount from the value of this Byte. | |
| void(* | mul )(struct Byte *const restrict, uint8_t) |
| Multiplies the value of this Byte by the given amount. | |
| void(* | div )(struct Byte *const restrict, uint8_t) |
| Divides the value of this Byte by the given amount. | |
| void(* | parse )(struct Byte *const restrict, const char *, int) |
| Attempts to set the value of this Byte by parsing a numeric string. | |
| long double(* | n_bang )(struct Byte *const restrict) |
| Returns the factorial of this Byte's value. | |
| const char *(* | to_bin )(struct Byte *const restrict) |
| Returns the base-2 representation of this Byte's value as a string. | |
Encapsulates an unsigned 8-bit integer.