Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MonaSolutions/MonaServer
/ HeaderSize
Method
HeaderSize
MonaCore/sources/WebSocket/WS.cpp:68–74 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
66
}
67
68
UInt8 WS::HeaderSize(UInt32 size) {
69
if (size < 126)
70
return 2;
71
if (size < 65536)
72
return 4;
73
return 10;
74
}
75
76
77
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected