Commit Graph

14 Commits

Author SHA1 Message Date
Andy Balholm 1ce1c68433 Simplify encoder interface. 2019-03-09 16:06:37 -08:00
Andy Balholm d6c7de28d1 Simplify encoder interface to match what is used by Write. 2019-03-09 15:57:44 -08:00
Andy Balholm 99596c61a1 Consolidate composite hashes. 2019-03-09 14:01:03 -08:00
Andy Balholm ba67d8c1de Consolidate rolling hashes. 2019-03-09 13:54:31 -08:00
Andy Balholm 42dac55258 Consolidate "forgetful chain" hashes. 2019-03-09 13:34:19 -08:00
Andy Balholm c4f1bfa34f Start reducing duplication in hasher code.
The C version defined several related hasher types with preprocessor
tricks, but I split them up for the translation to Go. Now I'm
recombining them.
2019-03-09 13:01:56 -08:00
Andy Balholm 74ae18c776 Use some Go library functions. 2019-03-08 19:45:16 -08:00
Andy Balholm 7ed41e6356 Change more hasher functions to methods. 2019-03-08 16:43:15 -08:00
Andy Balholm bbbdedf380 Start converting hasher functions to methods. 2019-03-08 15:10:41 -08:00
Andy Balholm 6a14da654a Embed HasherCommon in each hasher type.
(Rather than having a pointer to the custom data in HasherCommon.)
2019-03-08 14:11:00 -08:00
Andy Balholm 7aac2143a1 Add LICENSE. 2019-03-06 17:11:20 -08:00
Andy Balholm 0da14edee1 Make BrotliDecoderState into a Reader. 2019-03-06 17:08:24 -08:00
Andy Balholm f036cd04c1 Make BrotliEncoderState into a Writer. 2019-03-06 16:16:48 -08:00
Andy Balholm 69a32ecc1a Initial commit.
This is the output of c2go, except for util.go.
2019-03-06 14:55:38 -08:00