On this page
  1. ctypes.wstring_at
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

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

REPL Inspect

from ctypes import wstring_at
help(wstring_at)

Linked from

Related notes