kiba-engine
integer.h
1 #pragma once
2 
3 #include <kiba/format/buffer.h>
4 #include <kiba/format/format.h>
5 
6 b8 format_read_unsigned_decimal(format_buffer *buf, format_options options, u64 *value);
7 b8 format_write_unsigned_decimal(format_buffer *buf, format_options options, u64 value);
8 b8 format_read_signed_decimal(format_buffer *buf, format_options options, i64 *value);
9 b8 format_write_signed_decimal(format_buffer *buf, format_options options, i64 value);
10 
11 FORMAT_FUNCTION(format_read_u64);
12 FORMAT_FUNCTION(format_write_u64);
13 FORMAT_FUNCTION(format_read_i64);
14 FORMAT_FUNCTION(format_write_i64);
15 FORMAT_FUNCTION(format_read_u32);
16 FORMAT_FUNCTION(format_write_u32);
17 FORMAT_FUNCTION(format_read_i32);
18 FORMAT_FUNCTION(format_write_i32);
19 FORMAT_FUNCTION(format_read_u16);
20 FORMAT_FUNCTION(format_write_u16);
21 FORMAT_FUNCTION(format_read_i16);
22 FORMAT_FUNCTION(format_write_i16);
23 FORMAT_FUNCTION(format_read_u8);
24 FORMAT_FUNCTION(format_write_u8);
25 FORMAT_FUNCTION(format_read_i8);
26 FORMAT_FUNCTION(format_write_i8);
27 FORMAT_FUNCTION(format_read_usize);
28 FORMAT_FUNCTION(format_write_usize);