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

ctypes.alignment

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


Import

import ctypes
from ctypes import alignment

Signature & Overview

ctypes.alignment(object, /)

alignment(C instance) -> integer Return the alignment requirements of a C instance

Usage

import ctypes

assert ctypes.alignment(ctypes.c_int32) == 4

Gotchas

REPL Inspect

from ctypes import alignment
help(alignment)

Linked from

Related notes