开发者

Ctypes definition

开发者 https://www.devze.com 2023-04-09 08:30 出处:网络
How could I write the definition copied bellow using c开发者_StackOverflow社区types? unsigned char* x = new unsigned char[10];

How could I write the definition copied bellow using c开发者_StackOverflow社区types?

unsigned char* x = new unsigned char[10];

Thank you.


Depending on how you need to use x, you probably want ctypes.create_string_buffer.

x = ctypes.create_string_buffer(' ' * 10);
0

精彩评论

暂无评论...
验证码 换一张
取 消