Exposing NewEncoder since GetEncoder is no longer around

This commit is contained in:
Frederick F. Kautz IV
2014-11-29 14:54:21 -08:00
parent dc5d7434e1
commit 3da8e53ab8
2 changed files with 3 additions and 3 deletions

View File

@@ -112,6 +112,6 @@ func (e *Encoder) Decode(chunks [][]byte, length int) ([]byte, error) {
}
func Decode(block [][]byte, ep *EncoderParams, length int) ([]byte, error) {
encoder := newEncoder(ep)
encoder := NewEncoder(ep)
return encoder.Decode(block, length)
}