blob: 2e9f70786278bf00a01ffaab6375b783682b9413 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#pragma once
#include "global.h"
typedef void zbuffer_writefunc(u8*,i64,void*);
struct zbuffer;
struct zbuffer* zbuffer_init(zbuffer_writefunc *wf,void *payload);
void zbuffer_write(struct zbuffer *z,u8 *data,i64 len);
void zbuffer_flush(struct zbuffer *z); // can degrade compression
void zbuffer_finish_destroy(struct zbuffer *z);
|