()
| 35 | func (f *Frame) HasFlag(flag uint8) bool { return f.Flags&flag != 0 } |
| 36 | |
| 37 | func (f *Frame) EncodedLen() int { |
| 38 | return SessionIDLen + 8 + 1 + 1 + len(f.Target) + 4 + len(f.Payload) |
| 39 | } |
| 40 | |
| 41 | // Marshal serializes the frame to a byte slice using the schema: |
| 42 | // |
no outgoing calls