sketch out os api, binary stream writer in js, app sleep when no animation, local and universal time
This commit is contained in:
@@ -132,6 +132,24 @@ fn void sb8_indent(sb8_t *sb);
|
||||
fn s8_t sb8_stmtf(sb8_t *sb, const char *str, ...);
|
||||
fn int64_t sb8_char_size(sb8_t *sb);
|
||||
|
||||
#if 0
|
||||
sb8_t *sbin_write_begin(ma_arena_t *arena);
|
||||
s8_t sbin_write_end(sb8_t *sb);
|
||||
|
||||
void *sbin_write_data(sb8_t *sb, void *p, i64 size);
|
||||
void *sbin_write_size(sb8_t *sb, i64 size);
|
||||
void *sbin_write_u64(sb8_t *sb, u64 value);
|
||||
void *sbin_write_u32(sb8_t *sb, u32 value);
|
||||
void *sbin_write_u16(sb8_t *sb, u16 value);
|
||||
void *sbin_write_u8(sb8_t *sb, u8 value);
|
||||
s8_t *sbin_write_s8(sb8_t *sb, s8_t string);
|
||||
char *sbin_write_str(sb8_t *sb, char *string);
|
||||
|
||||
stream_t sbin_read_begin(void *p, i64 size);
|
||||
void sbin_read_end(stream_t *stream);
|
||||
void *sbin_read_data(stream_t *stream, i64 size);
|
||||
#endif
|
||||
|
||||
//
|
||||
// other
|
||||
#define s8_fmtspec(string) (int)(string).len, (string).str
|
||||
|
||||
Reference in New Issue
Block a user