3 // An unsigned byte datatype
13 #define Byte(b) ((Byte_t)(b))
15 PUREFUNC Text_t Byte$as_text(const void *b, bool colorize, const TypeInfo_t *type);
17 Byte_t Byte$from_int(Int_t i, bool truncate);
18 Byte_t Byte$from_int64(int64_t i, bool truncate);
19 Byte_t Byte$from_int32(int32_t i, bool truncate);
20 Byte_t Byte$from_int16(int16_t i, bool truncate);
21 OptionalByte_t Byte$parse(Text_t text, OptionalInt_t base, Text_t *remainder);
22 Closure_t Byte$to(Byte_t first, Byte_t last, OptionalInt8_t step);
24 MACROLIKE Byte_t Byte$from_int8(int8_t i) {
27 MACROLIKE Byte_t Byte$from_bool(bool b) {
30 CONSTFUNC bool Byte$is_between(const Byte_t x, const Byte_t low, const Byte_t high);
32 extern const Byte_t Byte$min;
33 extern const Byte_t Byte$max;
35 extern const TypeInfo_t Byte$info;
37 Text_t Byte$hex(Byte_t byte, bool uppercase, bool prefix);
38 bool Byte$get_bit(Byte_t x, Int_t bit_index);