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

ctypes.memmove

Prev: ctypes.get_errno | Up: ctypes | Next: ctypes.memoryview_at
Rel: ctypes.addressof, ctypes.alignment, ctypes.ArgumentError, ctypes.Array
Ref: docs.python.org — ctypes.memmove
Tags: #public #python3 #stdlib #ctypes


Import

import ctypes
from ctypes import memmove

Signature & Overview

ctypes.memmove(*args, **kwargs)

ctypes.memmove() function.

Usage

import ctypes

src = ctypes.create_string_buffer(b"hello")
dst = ctypes.create_string_buffer(6)
ctypes.memmove(dst, src, 6)
assert dst.value == b"hello"

Gotchas

REPL Inspect

from ctypes import memmove
help(memmove)

Linked from

Related notes