aboutsummaryrefslogtreecommitdiffstats
path: root/core/memory.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/memory.go')
-rw-r--r--core/memory.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/memory.go b/core/memory.go
index 3d8063d..8826966 100644
--- a/core/memory.go
+++ b/core/memory.go
@@ -50,6 +50,7 @@ func (o *MemoryObject) Writer() (ObjectWriter, error) {
func (o *MemoryObject) Write(p []byte) (n int, err error) {
o.cont = append(o.cont, p...)
+ o.sz = int64(len(o.cont))
return len(p), nil
}