Create a C string buffer (null-terminated).
Python equivalent: ctypes.create_string_buffer
ctypes.create_string_buffer
Size in bytes, a string to copy, or an existing Buffer
Optional
A Buffer containing the null-terminated string
const buf = create_string_buffer('Hello');console.log(string_at(buf)); // "Hello"const buf2 = create_string_buffer(256); // 256-byte zero-filled buffer Copy
const buf = create_string_buffer('Hello');console.log(string_at(buf)); // "Hello"const buf2 = create_string_buffer(256); // 256-byte zero-filled buffer
Create a C string buffer (null-terminated).
Python equivalent:
ctypes.create_string_buffer