int num_bytes_remaining;
};
-static inline int bitstream_put_byte(struct output_bitstream *ostream,
- u8 n)
+static inline int
+bitstream_put_byte(struct output_bitstream *ostream, u8 n)
{
if (ostream->num_bytes_remaining < 1)
return 1;
return 0;
}
-static inline int bitstream_put_two_bytes(struct output_bitstream *ostream,
- u16 n)
+static inline int
+bitstream_put_two_bytes(struct output_bitstream *ostream, u16 n)
{
if (ostream->num_bytes_remaining < 2)
return 1;
typedef unsigned (*lz_record_match_t)(unsigned, unsigned, void *, void *);
typedef unsigned (*lz_record_literal_t)(u8, void *);
-extern unsigned lz_analyze_block(const u8 uncompressed_data[],
- unsigned uncompressed_len,
- u32 match_tab[],
- lz_record_match_t record_match,
- lz_record_literal_t record_literal,
- void *record_match_arg1,
- void *record_match_arg2,
- void *record_literal_arg,
- const struct lz_params *params);
+extern unsigned
+lz_analyze_block(const u8 uncompressed_data[],
+ unsigned uncompressed_len,
+ u32 match_tab[],
+ lz_record_match_t record_match,
+ lz_record_literal_t record_literal,
+ void *record_match_arg1,
+ void *record_match_arg2,
+ void *record_literal_arg,
+ const struct lz_params *params);
extern int bitstream_put_bits(struct output_bitstream *ostream,
output_bitbuf_t bits, unsigned num_bits);
-extern void init_output_bitstream(struct output_bitstream *ostream,
- void *data, unsigned num_bytes);
+extern void
+init_output_bitstream(struct output_bitstream *ostream,
+ void *data, unsigned num_bytes);
-extern int flush_output_bitstream(struct output_bitstream *ostream);
+extern int
+flush_output_bitstream(struct output_bitstream *ostream);
-extern void make_canonical_huffman_code(unsigned num_syms,
- unsigned max_codeword_len,
- const freq_t freq_tab[],
- u8 lens[],
- u16 codewords[]);
+extern void
+make_canonical_huffman_code(unsigned num_syms,
+ unsigned max_codeword_len,
+ const freq_t freq_tab[],
+ u8 lens[],
+ u16 codewords[]);
#endif /* _WIMLIB_COMPRESS_H */