Mercurial
view seobeo/s_websocket_common.c @ 262:0f45474c1b1a
Add cyberpunk JRPG blog browser
Show the latest posts in the JRPG preview and render the full blog archive and sanitized post details in the Inspect modal.
Co-authored-by: Copilot <[email protected]>
| author | MrJuneJune <mrjunejune@users.noreply.github.com> |
|---|---|
| date | Thu, 06 Aug 2026 04:08:45 -0700 |
| parents | f236c895604e |
| children |
line wrap: on
line source
#include "seobeo/seobeo.h" #include "seobeo/seobeo_internal.h" // Mask/unmask data with XOR operation (same for both directions) void Seobeo_WebSocket_Mask_Data(uint8 *data, size_t length, const uint8 *mask) { for (size_t i = 0; i < length; i++) { data[i] ^= mask[i % 4]; } } // Destroy a WebSocket message void Seobeo_WebSocket_Message_Destroy(Seobeo_WebSocket_Message *p_msg) { if (!p_msg) return; if (p_msg->data) free(p_msg->data); free(p_msg); }