Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F3064996
brotli.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
966 B
Referenced Files
None
Subscribers
None
brotli.h
View Options
#ifndef STREAMS_BROTLI_H
#define STREAMS_BROTLI_H
#include
<stddef.h>
#include
<stdbool.h>
#include
<stdint.h>
#include
"types.h"
typedef
int
(
*
brotli_stream_chunk_cb
)(
void
*
ctx
,
const
uint8_t
*
chunk
,
size_t
len
);
typedef
struct
brotli_stream_state
brotli_stream_state_t
;
brotli_stream_state_t
*
brotli_stream_state_new
(
bool
decompress
);
void
brotli_stream_state_destroy
(
brotli_stream_state_t
*
st
);
bool
brotli_stream_is_finished
(
brotli_stream_state_t
*
st
);
ant_value_t
brotli_stream_transform
(
ant_t
*
js
,
brotli_stream_state_t
*
st
,
ant_value_t
ctrl_obj
,
const
uint8_t
*
input
,
size_t
input_len
);
ant_value_t
brotli_stream_flush
(
ant_t
*
js
,
brotli_stream_state_t
*
st
,
ant_value_t
ctrl_obj
);
int
brotli_stream_process
(
brotli_stream_state_t
*
st
,
const
uint8_t
*
input
,
size_t
input_len
,
brotli_stream_chunk_cb
cb
,
void
*
ctx
);
int
brotli_stream_finish
(
brotli_stream_state_t
*
st
,
brotli_stream_chunk_cb
cb
,
void
*
ctx
);
#endif
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Fri, Apr 3, 9:19 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
522053
Default Alt Text
brotli.h (966 B)
Attached To
Mode
rANT Ant
Attached
Detach File
Event Timeline
Log In to Comment