Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-unixfs
Commits
1424de80
Commit
1424de80
authored
Nov 07, 2014
by
Jeromy
Committed by
Juan Batiz-Benet
Nov 07, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
probably fix OSX ipns bug
parent
e4b1b49c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
io/dagmodifier.go
io/dagmodifier.go
+7
-0
No files found.
io/dagmodifier.go
View file @
1424de80
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment