MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / GetFlags

Method GetFlags

libi2pd/Streaming.h:106–106  ·  view source on GitHub ↗

3 = resendDelay + flags

Source from the content-addressed store, hash-verified

104 const uint8_t * GetNACKs () const { return buf + 17; };
105 const uint8_t * GetOption () const { return buf + 17 + GetNACKCount ()*4 + 3; }; // 3 = resendDelay + flags
106 uint16_t GetFlags () const { return bufbe16toh (GetOption () - 2); };
107 uint16_t GetOptionSize () const { return bufbe16toh (GetOption ()); };
108 const uint8_t * GetOptionData () const { return GetOption () + 2; };
109 const uint8_t * GetPayload () const { return GetOptionData () + GetOptionSize (); };

Callers 3

HandleNextPacketMethod · 0.80
ProcessPacketMethod · 0.80
HandlePingMethod · 0.80

Calls 2

bufbe16tohFunction · 0.85
GetOptionFunction · 0.85

Tested by

no test coverage detected