fix bytewriter not writing data

This commit is contained in:
Alex Yatskov 2018-12-17 12:00:07 -08:00
parent 7204f07861
commit c30edb6aca
2 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,6 @@ package dc6
import (
"encoding/binary"
"io"
"github.com/FooSoft/lazarus/streaming"

View File

@ -28,7 +28,9 @@ func (w *writer) Write(data []byte) (int, error) {
return 0, errors.New("cannot write past end of buffer")
}
copy(w.data[w.offset:], data[:length])
w.offset += length
return length, nil
}