Files
crm_project/server/venv/lib/python3.12/site-packages/asyncpg/pgproto/hton.pxd
T
hankin 423baff73b v0.1.0: CRM/ERP 系统内测版本 - 安全加固完成
- Docker bridge 网络隔离(8000 端口封死)
- Gunicorn 4 Worker 多进程
- Alembic 数据库迁移基线
- 日志轮转 20m×3
- JWT 密钥 + DB 密码 + CORS 收紧
- 3-2-1 备份链路(NAS + R740-B 冷备)
- 连接池 pool_pre_ping + pool_recycle=3600
2026-03-16 07:31:37 +00:00

25 lines
953 B
Cython

# Copyright (C) 2016-present the asyncpg authors and contributors
# <see AUTHORS file>
#
# This module is part of asyncpg and is released under
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
from libc.stdint cimport int16_t, int32_t, uint16_t, uint32_t, int64_t, uint64_t
cdef extern from "./hton.h":
cdef void pack_int16(char *buf, int16_t x);
cdef void pack_int32(char *buf, int32_t x);
cdef void pack_int64(char *buf, int64_t x);
cdef void pack_float(char *buf, float f);
cdef void pack_double(char *buf, double f);
cdef int16_t unpack_int16(const char *buf);
cdef uint16_t unpack_uint16(const char *buf);
cdef int32_t unpack_int32(const char *buf);
cdef uint32_t unpack_uint32(const char *buf);
cdef int64_t unpack_int64(const char *buf);
cdef uint64_t unpack_uint64(const char *buf);
cdef float unpack_float(const char *buf);
cdef double unpack_double(const char *buf);