On this page
ctypes.wstring_at
Prev: ctypes.string_at | Up: ctypes
Rel: ctypes.addressof, ctypes.alignment, ctypes.ArgumentError, ctypes.Array
Ref: docs.python.org — ctypes.wstring_at
Tags: #public #python3 #stdlib #ctypes
Import
import ctypes
from ctypes import wstring_at
Signature & Overview
ctypes.wstring_at(ptr, size=-1)
Return the wide-character string at void *ptr.
Usage
import ctypes
buf = ctypes.create_unicode_buffer("hi")
assert ctypes.wstring_at(buf) == "hi"
Gotchas
- Wide-character counterpart to
string_at(): Readswchar_t*memory into a Pythonstr.
REPL Inspect
from ctypes import wstring_at
help(wstring_at)
Linked from
Related notes
- tuts/python3/stdlib_module/ctypes/string_at 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
- tuts/python3/stdlib_module/ctypes/c_bool shared tags: #ctypes, #stdlib