HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/django/contrib/gis/__pycache__/ptr.cpython-310.pyc
o

���_	�@sddlmZGdd�d�ZdS)�)�c_void_pc@sBeZdZdZdZeZdZeZ	e
dd��Zejdd��Zdd�Z
dS)�CPointerBasezz
    Base class for objects that have a pointer access property
    that controls access to the underlying C pointer.
    NcCs|jr|jS|�d|jj��)NzNULL %s pointer encountered.)�_ptr�null_ptr_exception_class�	__class__�__name__��self�r
�8/usr/lib/python3/dist-packages/django/contrib/gis/ptr.py�ptrszCPointerBase.ptrcCs.|dust||j�stdt|���||_dS)NzIncompatible pointer type: %s.)�
isinstance�ptr_type�	TypeError�typer)r	rr
r
rrs
c
CsB|jr|jrz	|�|j�WdStttfyYdSwdSdS)z9
        Free the memory used by the C++ object.
        N)�
destructorrr�AttributeError�ImportErrorrrr
r
r�__del__s��zCPointerBase.__del__)r�
__module__�__qualname__�__doc__rrrrrr�propertyr�setterrr
r
r
rrs

rN)�ctypesrrr
r
r
r�<module>s