// Code generated by xtgen; DO NOT EDIT. package bigreq import "encoding/binary" // EnableReply is a zero-copy view over a Enable reply; offsets count from reply byte 0. // It borrows the reply bytes: valid only until the Handler callback returns, because the read ring is reused. Copy what you keep. type EnableReply struct{ raw []byte } // ParseEnableReply validates raw (the whole reply, 32+4*length bytes) once; getters do not re-check. func ParseEnableReply(raw []byte) (EnableReply, bool) { if len(raw) < 32 { return EnableReply{}, false } r := EnableReply{raw: raw} return r, true } func (r EnableReply) Raw() []byte { return r.raw } func (r EnableReply) MaximumRequestLength() uint32 { return uint32(binary.LittleEndian.Uint32(r.raw[8:])) }