OutMessage.OutHeader

geesefs-0-30-9
Aaron Jacobs 2016-12-19 13:04:54 +11:00
parent 849f53b080
commit d1ff915b0b
1 changed files with 3 additions and 1 deletions

View File

@ -72,7 +72,9 @@ func (m *OutMessage) Reset() {
} }
// OutHeader returns a pointer to the header at the start of the message. // OutHeader returns a pointer to the header at the start of the message.
func (m *OutMessage) OutHeader() (h *fusekernel.OutHeader) func (m *OutMessage) OutHeader() *fusekernel.OutHeader {
return (*fusekernel.OutHeader)(unsafe.Pointer(&m.header))
}
// Grow grows m's buffer by the given number of bytes, returning a pointer to // Grow grows m's buffer by the given number of bytes, returning a pointer to
// the start of the new segment, which is guaranteed to be zeroed. If there is // the start of the new segment, which is guaranteed to be zeroed. If there is