Pure Go Brotli encoder and decoder
Go to file
Andy Balholm ed0fd64940 Fix int overflow in test on 32-bit.
On 32-bit systems, the random array indexes were sometimes negative as a
result of converting an int64 to int.

Fixes #7.
2019-07-25 08:52:43 -07:00
LICENSE Add LICENSE. 2019-03-06 17:11:20 -08:00
README.md Add README. 2019-06-21 08:47:22 -07:00
backward_references.go gofmt 2019-03-29 15:15:07 -07:00
backward_references_hq.go Use const for constants. 2019-03-21 16:15:39 -07:00
bit_cost.go Clean up duplicate and misplaced comments. 2019-03-21 15:34:30 -07:00
bit_reader.go Clean up duplicate and misplaced comments. 2019-03-21 15:34:30 -07:00
block_splitter.go Use const for constants. 2019-03-21 16:15:39 -07:00
block_splitter_command.go Clean up duplicate and misplaced comments. 2019-03-21 15:34:30 -07:00
block_splitter_distance.go Clean up duplicate and misplaced comments. 2019-03-21 15:34:30 -07:00
block_splitter_literal.go Clean up duplicate and misplaced comments. 2019-03-21 15:34:30 -07:00
brotli_bit_stream.go Finish un-exporting symbols. 2019-03-15 18:00:20 -07:00
brotli_test.go Fix int overflow in test on 32-bit. 2019-07-25 08:52:43 -07:00
cluster.go Clean up duplicate and misplaced comments. 2019-03-21 15:34:30 -07:00
cluster_command.go Clean up duplicate and misplaced comments. 2019-03-21 15:34:30 -07:00
cluster_distance.go Clean up duplicate and misplaced comments. 2019-03-21 15:34:30 -07:00
cluster_literal.go Clean up duplicate and misplaced comments. 2019-03-21 15:34:30 -07:00
command.go Finish un-exporting symbols. 2019-03-15 18:00:20 -07:00
compress_fragment.go Use const for constants. 2019-03-21 16:15:39 -07:00
compress_fragment_two_pass.go Fix negative slice indexes. 2019-03-23 11:17:03 -07:00
constants.go Un-export some more symbols 2019-03-15 17:24:40 -07:00
context.go Clean up duplicate and misplaced comments. 2019-03-21 15:34:30 -07:00
decode.go Fix warnings from go vet. 2019-03-26 06:05:46 -04:00
dictionary.go Clean up duplicate and misplaced comments. 2019-03-21 15:34:30 -07:00
dictionary_hash.go Clean up duplicate and misplaced comments. 2019-03-21 15:34:30 -07:00
encode.go Preserve compression settings when Writer is reset. 2019-07-04 08:13:24 -07:00
encoder_dict.go Finish un-exporting symbols. 2019-03-15 18:00:20 -07:00
entropy_encode.go Clean up duplicate and misplaced comments. 2019-03-21 15:34:30 -07:00
entropy_encode_static.go Finish un-exporting symbols. 2019-03-15 18:00:20 -07:00
fast_log.go Clean up duplicate and misplaced comments. 2019-03-21 15:34:30 -07:00
find_match_length.go Clean up duplicate and misplaced comments. 2019-03-21 15:34:30 -07:00
go.mod Add HTTPCompressor for HTTP Content-Encoding negotiation. 2019-04-30 14:53:06 -07:00
go.sum Add HTTPCompressor for HTTP Content-Encoding negotiation. 2019-04-30 14:53:06 -07:00
h5.go Clean up duplicate and misplaced comments. 2019-03-21 15:34:30 -07:00
h6.go Clean up duplicate and misplaced comments. 2019-03-21 15:34:30 -07:00
h10.go Clean up duplicate and misplaced comments. 2019-03-21 15:34:30 -07:00
hash.go Use const for constants. 2019-03-21 16:15:39 -07:00
hash_composite.go Clean up duplicate and misplaced comments. 2019-03-21 15:34:30 -07:00
hash_forgetful_chain.go Clean up duplicate and misplaced comments. 2019-03-21 15:34:30 -07:00
hash_longest_match_quickly.go Clean up duplicate and misplaced comments. 2019-03-21 15:34:30 -07:00
hash_rolling.go Use const for constants. 2019-03-21 16:15:39 -07:00
histogram.go Un-export some more symbols 2019-03-15 17:24:40 -07:00
huffman.go Fix warnings from go vet. 2019-03-26 06:05:46 -04:00
literal_cost.go Finish un-exporting symbols. 2019-03-15 18:00:20 -07:00
memory.go Clean up duplicate and misplaced comments. 2019-03-21 15:34:30 -07:00
metablock.go Clean up duplicate and misplaced comments. 2019-03-21 15:34:30 -07:00
metablock_command.go Clean up duplicate and misplaced comments. 2019-03-21 15:34:30 -07:00
metablock_distance.go Clean up duplicate and misplaced comments. 2019-03-21 15:34:30 -07:00
metablock_literal.go Clean up duplicate and misplaced comments. 2019-03-21 15:34:30 -07:00
params.go Clean up duplicate and misplaced comments. 2019-03-21 15:34:30 -07:00
platform.go Clean up duplicate and misplaced comments. 2019-03-21 15:34:30 -07:00
prefix.go Clean up duplicate and misplaced comments. 2019-03-21 15:34:30 -07:00
prefix_dec.go Finish un-exporting symbols. 2019-03-15 18:00:20 -07:00
quality.go Finish un-exporting symbols. 2019-03-15 18:00:20 -07:00
reader.go Merge pull request #4 from paolobarbolini/behave-like-compress 2019-04-25 09:01:22 -07:00
ringbuffer.go Use const for constants. 2019-03-21 16:15:39 -07:00
state.go Finish un-exporting symbols. 2019-03-15 18:00:20 -07:00
static_dict.go Use const for constants. 2019-03-21 16:15:39 -07:00
static_dict_lut.go Use const for constants. 2019-03-21 16:15:39 -07:00
symbol_list.go Clean up duplicate and misplaced comments. 2019-03-21 15:34:30 -07:00
transform.go Fix warnings from go vet. 2019-03-26 06:05:46 -04:00
utf8_util.go Use const for constants. 2019-03-21 16:15:39 -07:00
util.go Use some Go library functions. 2019-03-08 19:45:16 -08:00
write_bits.go Clean up duplicate and misplaced comments. 2019-03-21 15:34:30 -07:00
writer.go Preserve compression settings when Writer is reset. 2019-07-04 08:13:24 -07:00

README.md

This package is a brotli compressor and decompressor implemented in Go. It was translated from the reference implementation (https://github.com/google/brotli) with the c2go tool at https://github.com/andybalholm/c2go.

I am using it in production with https://github.com/andybalholm/redwood.