On this page
ctypes.c_int64
Prev: ctypes.c_int32 | Up: ctypes | Next: ctypes.c_int8
Rel: ctypes.addressof, ctypes.alignment, ctypes.ArgumentError, ctypes.Array
Ref: docs.python.org — ctypes.c_int64
Tags: #public #python3 #stdlib #ctypes
Import
import ctypes
from ctypes import c_int64
Signature & Overview
ctypes.c_int64(...)
ctypes.c_int64 class.
Usage
import ctypes
n = ctypes.c_int64(10**12)
assert n.value == 10**12 and ctypes.sizeof(n) == 8
Gotchas
- Fixed-width signed 64-bit integer.
REPL Inspect
from ctypes import c_int64
help(c_int64)
Linked from
Related notes
- tuts/python3/stdlib_module/ctypes/c_int32 Linked here; links to this page; shared tags: #ctypes, #stdlib
- tuts/python3/stdlib_module/ctypes/c_int8 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