1# Copyright (C) 2016-present the asyncpg authors and contributors
2# <see AUTHORS file>
3#
4# This module is part of asyncpg and is released under
5# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
6
7
8cdef extern from "Python.h":
9    int PyByteArray_Check(object)
10
11    int PyMemoryView_Check(object)
12    Py_buffer *PyMemoryView_GET_BUFFER(object)
13    object PyMemoryView_GetContiguous(object, int buffertype, char order)
14
15    Py_UCS4* PyUnicode_AsUCS4Copy(object) except NULL
16    object PyUnicode_FromKindAndData(
17        int kind, const void *buffer, Py_ssize_t size)
18
19    int PyUnicode_4BYTE_KIND
20