大约有 24,000 项符合查询结果(耗时:0.0111秒) [XML]

https://stackoverflow.com/ques... 

String literals: Where do they go?

...rt literals, I could see the compiler generating code such as movb $65, 8(%esp); movb $66, 9(%esp); movb $0, 10(%esp) for the string "AB", but the vast majority of the time, it will be in a non-code segment such as .data or .rodata or the like (depending on whether or not the target supports read-on...
https://stackoverflow.com/ques... 

Is errno thread-safe?

...0: 55 push ebp 1: 89 e5 mov ebp,esp 3: 83 e4 f0 and esp,0xfffffff0 6: e8 fc ff ff ff call 7 <main+0x7> ; get address of errno in EAX b: c7 00 00 00 00 00 mov DWORD PTR [eax],0x0 ; store 0 in errno 11: b8 00...
https://bbs.tsingfun.com/thread-1548-1-1.html 

BLE通信数据不能超过20字节? - 创客硬件开发 - 清泛IT社区,为创新赋能!

...没问题,用AI2就截断了,只有20字符。 答复: 1-在 ESP32 代码中,我放置了这一行:BLEDevice::setMTU(192); 2- 在应用程序中,我将调用 Request MTU 放在 .Connected 块上,请求相同的 192 字节; 就我而言,当我必须发送< 23字节的...
https://www.tsingfun.com/it/tech/2691.html 

BLE协议—广播和扫描 - 更多技术 - 清泛网 - 专注C/C++及内核技术

...要求较高的情况下),也可以在广播和扫描的基础上进行连接后点对点通信。 BLE协议—广播和扫描 版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。 本文链接:https://...
https://stackoverflow.com/ques... 

How do function pointers in C work?

...ring function is called in order to set up the function pointers to their respective functions: String newString() { String self = (String)malloc(sizeof(struct String_Struct)); self->get = &getString; self->set = &setString; self->length = &lengthString; s...
https://www.tsingfun.com/it/tech/738.html 

TCP 的那些事儿(上) - 更多技术 - 清泛网 - 专注C/C++及内核技术

...,那是IP层上的事。但是有源端口和目标端口。 一个TCP连接需要四个元组来表示是同一个连接(src_ip, src_port, dst_ip, dst_port)准确说是五元组,还有一个是协议。但因为这里只是说TCP协议,所以,这里我只说四元组。 注意上图...
https://bbs.tsingfun.com/thread-1692-1-1.html 

BLE协议—广播和扫描 - 创客硬件开发 - 清泛IT社区,为创新赋能!

...要求较高的情况下),也可以在广播和扫描的基础上进行连接后点对点通信。广播访问地址广播包:广播包Access Address 固定为0x8E89BED6,广播包只能在广播信道(channel)上传输,即只能在37/38/39信道上传输(注:从蓝牙5.0开始广...
https://www.tsingfun.com/it/os_kernel/663.html 

深入理解 x86/x64 的中断体系 - 操作系统(内核) - 清泛网 - 专注C/C++及内核技术

... 中断(可屏蔽中断)。它的逻辑 C 描述为: *(--esp) = eflags; /* push eflags */ if (gate_descriptor.type == INTERRUPT_GATE) eflags.IF = 0; /* clear eflags.IF */ interrupt handler 使用 iret 指令返...
https://bbs.tsingfun.com/thread-1393-1-1.html 

【BLE技术内幕】BLE技术揭秘 - 创客硬件开发 - 清泛IT论坛,有思想、有深度

...包括:低功耗,使用纽扣电池就可以运行数月至数年。快连接,毫秒级的连接速度,传统蓝牙甚至长达数分钟。远距离,长达数百米的通信距离,而传统蓝牙通常10米左右。 蓝牙联盟沿用经典蓝牙的规范内容,为低功耗蓝牙定...
https://www.tsingfun.com/it/tech/1087.html 

Http长连接200万尝试及调优 - 更多技术 - 清泛网 - 专注C/C++及内核技术

Http长连接200万尝试及调优对于一个server,我们一般考虑他所能支撑的qps,但有那么一种应用, 我们需要关注的是它能支撑的连接数个数,而并非qps,当然qps也是我们...对于一个server,我们一般考虑他所能支撑的qps,但有那么一...