Initial commit - Migrated to Dev environment

This commit is contained in:
2026-02-03 19:55:45 +00:00
commit a34e5b7976
3518 changed files with 481663 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
# 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);