资源简介
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
相关资源
- R语言与统计分析—汤银才.pdf
- ERP管理源码MingRiERP.zip
- sourceFTP编程clientserver.rar
- EltimaSerialPortMonitor402281.rar
- PersonalPlatform.rar
- NetGPSMgr.rar
- MIMO系统中的天线选择和自适应传输
- jnjlc1_4985788.zip
- 多机调度(贪心算法).rar
- N皇后.rar
- EOS-Platform-7.0基础开发教程完整版.pd
- ADI高速、混合、微弱信号布线指南中
- db2驱动.zip
- (BlogYi)v1.7.5项目源文件.rar
- 自然资源一张图平台软件技术方案2
- 三调建库与管理系统使用手册2018102
- Maple教程.rar
- MediaTimer成功版.rar
- tf-faster-rcnn.rar
- WinHex.rar
- 30160830i6v7.gz
- ueditor.rar
- 20171225TIM3-PWM-螺旋桨调速.rar
- DR.COM自动测试帐号器.rar
- 精通比特币.rar
- ISO11898-3-2006道路车辆—控制器区域网
- FANUC-18I参数说明书.pdf
- AI安全调研报告_v5.docx
- 课程设计.rar100608
- 3750969ZXHNZXA10_F601V4.0.2P7T1_ZLD_UPGRADE.im
评论
共有 条评论