On this page
ctypes.c_buffer
Prev: ctypes.c_bool | Up: ctypes | Next: ctypes.c_byte
Rel: ctypes.addressof, ctypes.alignment, ctypes.ArgumentError, ctypes.Array
Ref: docs.python.org — ctypes.c_buffer
Tags: #public #python3 #stdlib #ctypes
Import
import ctypes
from ctypes import c_buffer
Signature & Overview
ctypes.c_buffer(init, size=None)
create_string_buffer(anInteger) -> character array create_string_buffer(aBytes, anInteger) -> character array
Usage
import ctypes
assert ctypes.c_buffer is ctypes.create_string_buffer
Gotchas
- Legacy alias for
create_string_buffer(): Prefercreate_string_buffer()in new code.
REPL Inspect
from ctypes import c_buffer
help(c_buffer)
Linked from
Related notes
- tuts/python3/stdlib_module/ctypes/c_bool Linked here; links to this page; shared tags: #ctypes, #stdlib
- tuts/python3/stdlib_module/ctypes/c_byte Linked here; links to this page; shared tags: #ctypes, #stdlib
- tuts/python3/stdlib_module/ctypes Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/ctypes/addressof Linked here; shared tags: #ctypes, #stdlib
- tuts/python3/stdlib_module/ctypes/alignment Linked here; shared tags: #ctypes, #stdlib
- tuts/python3/stdlib_module/ctypes/ArgumentError Linked here; shared tags: #ctypes, #stdlib
- tuts/python3/stdlib_module/ctypes/Array Linked here; shared tags: #ctypes, #stdlib
- tuts/python3/stdlib_module/ctypes/BigEndianStructure shared tags: #ctypes, #stdlib
- tuts/python3/stdlib_module/ctypes/BigEndianUnion shared tags: #ctypes, #stdlib
- tuts/python3/stdlib_module/ctypes/byref shared tags: #ctypes, #stdlib