Commit 1424de80 authored by Jeromy's avatar Jeromy Committed by Juan Batiz-Benet

probably fix OSX ipns bug

parent e4b1b49c
...@@ -173,6 +173,13 @@ func (dm *DagModifier) WriteAt(b []byte, offset uint64) (int, error) { ...@@ -173,6 +173,13 @@ func (dm *DagModifier) WriteAt(b []byte, offset uint64) (int, error) {
return origlen, nil return origlen, nil
} }
func (dm *DagModifier) Size() uint64 {
if dm == nil {
return 0
}
return dm.pbdata.GetFilesize()
}
// splitBytes uses a splitterFunc to turn a large array of bytes // splitBytes uses a splitterFunc to turn a large array of bytes
// into many smaller arrays of bytes // into many smaller arrays of bytes
func splitBytes(b []byte, spl chunk.BlockSplitter) [][]byte { func splitBytes(b []byte, spl chunk.BlockSplitter) [][]byte {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment