Add a skeleton of an adler.update method.

This commit is contained in:
Nigel Tao committed 2017-10-19 18:58:17 +11:00
1 parent 5b0d6f6f3e
commit 50369c782c
5 files changed
+38 -2

No files matched your search

+8
View File
@@ -697,6 +697,9 @@ puffs_flate_status puffs_flate_decoder_init_huff(puffs_flate_decoder* self,
uint32_t a_n_codes1,
uint32_t a_base_symbol);
uint32_t puffs_flate_adler_update(puffs_flate_adler* self,
puffs_base_slice_u8 a_x);
// ---------------- Initializer Implementations
// PUFFS_MAGIC is a magic number to check that initializers are called. It's
@@ -2416,3 +2419,8 @@ short_read_src:
status = PUFFS_FLATE_SUSPENSION_SHORT_READ;
goto suspend;
}
uint32_t puffs_flate_adler_update(puffs_flate_adler* self,
puffs_base_slice_u8 a_x) {
return self->private_impl.f_state;
}