diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2021-11-11 16:31:58 -0800 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2021-11-11 16:31:58 -0800 |
commit | 9695ea005d4af93dcd60f74f10fd3c54499a182f (patch) | |
tree | 3e1a9abb9456ba07c0c97cd3d691f6a2df115791 /sys/base/flate/internal.h | |
parent | c65794b50b1bc729e7a4e940b76a973afa3030b9 (diff) |
chore: split up base library into individual files for smaller binaries
Diffstat (limited to 'sys/base/flate/internal.h')
-rw-r--r-- | sys/base/flate/internal.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/sys/base/flate/internal.h b/sys/base/flate/internal.h new file mode 100644 index 0000000..794c7c2 --- /dev/null +++ b/sys/base/flate/internal.h @@ -0,0 +1,39 @@ +#pragma once + +#include <u.h> +#include <base.h> + +#include <zlib.h> + +typedef struct buffer +{ + union { + struct z_stream_s; + z_stream z; + }; + + ubyte buf[4098]; +} buffer; + +typedef struct flate·Reader +{ + io·Reader rdr; + void* impl; + + union { + struct buffer; + buffer b; + }; +} flate·Reader; + +typedef struct flate·Writer +{ + io·Writer wtr; + void* impl; + + union { + struct buffer; + buffer b; + }; +} flate·Writer; + |