资源简介
libwebsockets-master.rar

代码片段和文件信息
#include “private-libwebsockets.h“
#if defined(LWS_PLAT_OPTEE)
#define TEE_USER_MEM_HINT_NO_FILL_ZERO 0x80000000
void *__attribute__((weak))
TEE_Malloc(uint32_t size uint32_t hint)
{
return NULL;
}
void *__attribute__((weak))
TEE_Realloc(void *buffer uint32_t newSize)
{
return NULL;
}
void __attribute__((weak))
TEE_Free(void *buffer)
{
}
void *lws_realloc(void *ptr size_t size const char *reason)
{
return TEE_Realloc(ptr size);
}
void *lws_malloc(size_t size const char *reason)
{
return TEE_Malloc(size TEE_USER_MEM_HINT_NO_FILL_ZERO);
}
void lws_free(void *p)
{
TEE_Free(p);
}
void *lws_zalloc(size_t size const char *reason)
{
void *ptr = TEE_Malloc(size TEE_USER_MEM_HINT_NO_FILL_ZERO);
if (ptr)
memset(ptr 0 size);
return ptr;
}
void lws_set_allocator(void *(*cb)(void *ptr size_t size const char *reason))
{
(void)cb;
}
#else
static void *_realloc(void *ptr size_t size const char *reason)
{
if (size) {
#if defined(LWS_WITH_ESP32)
lwsl_notice(“%s: size %lu: %s (free heap %d)\n“ __func__
(unsigned long)size reason (unsigned int)esp_get_free_heap_size() - (int)size);
#else
lwsl_debug(“%s: size %lu: %s\n“ __func__
(unsigned long)size reason);
#endif
#if defined(LWS_PLAT_OPTEE)
return (void *)TEE_Realloc(ptr size);
#else
return (void *)realloc(ptr size);
#endif
}
if (ptr)
free(ptr);
return NULL;
}
void *(*_lws_realloc)(void *ptr size_t size const char *reason) = _realloc;
void *lws_realloc(void *ptr size_t size const char *reason)
{
return _lws_realloc(ptr size reason);
}
void *lws_zalloc(size_t size const char *reason)
{
void *ptr = _lws_realloc(NULL size reason);
if (ptr)
memset(ptr 0 size);
return ptr;
}
void lws_set_allocator(void *(*cb)(void *ptr size_t size const char *reason))
{
_lws_realloc = cb;
}
#endif
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
....... 76858 2018-01-03 20:07 doc-assets\lwsgt-overview.png
....... 1841 2018-01-03 20:07 lib\alloc.c
....... 27765 2018-01-03 20:07 lib\client\client-handshake.c
....... 15563 2018-01-03 20:07 lib\client\client-parser.c
....... 33081 2018-01-03 20:07 lib\client\client.c
....... 4082 2018-01-03 20:07 lib\client\ssl-client.c
....... 46576 2018-01-03 20:07 lib\context.c
....... 6036 2018-01-03 20:07 lib\event-libs\libev.c
....... 6163 2018-01-03 20:07 lib\event-libs\libevent.c
....... 16836 2018-01-03 20:07 lib\event-libs\libuv.c
....... 14477 2018-01-03 20:07 lib\ext\extension-permessage-deflate.c
....... 909 2018-01-03 20:07 lib\ext\extension-permessage-deflate.h
....... 7231 2018-01-03 20:07 lib\ext\extension.c
....... 8964 2018-01-03 20:07 lib\handshake.c
....... 9112 2018-01-03 20:07 lib\header.c
....... 36639 2018-01-03 20:07 lib\http2\hpack.c
....... 43730 2018-01-03 20:07 lib\http2\http2.c
....... 29952 2018-01-03 20:07 lib\http2\huftable.h
....... 11866 2018-01-03 20:07 lib\http2\minihuf.c
....... 4775 2018-01-03 20:07 lib\http2\ssl-http2.c
....... 6515 2018-01-03 20:07 lib\jws\jwk.c
....... 17231 2018-01-03 20:07 lib\jws\jws.c
....... 1805 2018-01-03 20:07 lib\lextable-strings.h
....... 43283 2018-01-03 20:07 lib\lextable.h
....... 73523 2018-01-03 20:07 lib\libwebsockets.c
....... 239813 2018-01-03 20:07 lib\libwebsockets.h
....... 4876 2018-01-03 20:07 lib\minilex.c
....... 6562 2018-01-03 20:07 lib\misc\ba
....... 6738 2018-01-03 20:07 lib\misc\getifaddrs.c
....... 2583 2018-01-03 20:07 lib\misc\getifaddrs.h
............此处省略334个文件信息
- 上一篇:ERP管理源码MingRiERP.zip
- 下一篇:R语言与统计分析—汤银才.pdf
相关资源
- vspd7.2.308.zip
- 价值2k的H漫画小说系统
- Pythonamp;课堂amp;笔记(高淇amp;400;集第
- ddos压力测试工具99657
- UML建模大全
- 开源1A锂电池充电板TP4056原理图+PCB
- m1卡 ic卡可选择扇区初始化加密软件
- TSCC.exe
- FTP课程设计(服务端+客户端)
- 计算机图形学 边填充算法实现代码
- 电力系统潮流计算程序集合
- oracle数据迁移项目实施方案
- Web Api 通过文件流 文件到本地
- Visio图标-最新最全的网络通信图标库
- Spire API文档
- OpenGL参考手册
- Python中Numpy库最新教程
- SPD博士V5.3.exe
- 直流无刷电机方波驱动 stm32 例程代码
- layui后台管理模板
- 仿知乎界面小程序源代码
- 云平台-阿里云详细介绍
- photoshop经典1000例
- scratch垃圾分类源码(最终版本).sb
- IAR ARM 7.8破解
- TI CCS V5.4 安装步骤及破解文件
- 松下plc FP-XH的驱动
- 局域网硬件信息收集工具
- 加快Windows XP操作系统开机速度
- 联想启天M4350 BIOS升级文件
评论
共有 条评论