MCPcopy Index your code
hub / github.com/Hidden-Node/GooseRelayVPN-AndroidClient / EncodedLen

Method EncodedLen

internal/frame/frame.go:37–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35func (f *Frame) HasFlag(flag uint8) bool { return f.Flags&flag != 0 }
36
37func (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//

Callers 6

MarshalMethod · 0.95
AppendMarshalMethod · 0.95
EncodeBatchFunction · 0.80

Calls

no outgoing calls