OutMessage.Grow

geesefs-0-30-9
Aaron Jacobs 2015-07-28 16:23:59 +10:00
parent 2e3cba1928
commit 9a55ffcd7d
1 changed files with 6 additions and 1 deletions

View File

@ -65,7 +65,12 @@ func (b *OutMessage) OutHeader() (h *fusekernel.OutHeader) {
// start of the new segment, which is zeroed. If there is no space left, return
// the nil pointer.
func (b *OutMessage) Grow(size uintptr) (p unsafe.Pointer) {
panic("TODO")
p = b.GrowNoZero(size)
if p != nil {
memclr(p, size)
}
return
}
// Equivalent to Grow, except the new segment is not zeroed. Use with caution!