]> Sergey Matveev's repositories - btrtrc.git/commit
bencode.Encoder: Unembed the Writer and wrap it in a minimal interface
authorMatt Joiner <anacrolix@gmail.com>
Wed, 15 Jun 2016 05:09:34 +0000 (15:09 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Wed, 15 Jun 2016 05:09:34 +0000 (15:09 +1000)
commit727d002e5ac6cf6e671a7249dcd0d9cbfcac1dd0
treee959def6082cdc63521f545021fe7907c42b0fa5
parentac3b40ace3d42362fa4c48d59259b3347b5c2e56
bencode.Encoder: Unembed the Writer and wrap it in a minimal interface

I won't remove the bufio.Buffer for Marshal now, it isn't a performance issue as far as I can tell, and I'd have to fake Flush().
bencode/api.go
bencode/encode.go