补充
This commit is contained in:
37
CPython/Python/P312/PyBytesObject.py
Normal file
37
CPython/Python/P312/PyBytesObject.py
Normal file
@@ -0,0 +1,37 @@
|
||||
import Object
|
||||
import t, c
|
||||
|
||||
|
||||
class PyBytesObject:
|
||||
ob_base: Object.PyVarObject
|
||||
ob_shash: Object.Py_hash_t
|
||||
ob_sval: list[t.CChar, 1]
|
||||
|
||||
def _PyBytes_Resize(arg0: Object.PyObjectPtr[t.CPtr], arg1: Object.Py_ssize_t) -> int | t.State: pass
|
||||
def _PyBytes_FormatEx(format: t.CConst | str, format_len: Object.Py_ssize_t, args: Object.PyObjectPtr, use_bytearray: int) -> Object.PyObjectPtr | t.State: pass
|
||||
def _PyBytes_FromHex(string: Object.PyObjectPtr, use_bytearray: int) -> Object.PyObjectPtr | t.State: pass
|
||||
def _PyBytes_DecodeEscape(arg0: t.CConst | str, arg1: Object.Py_ssize_t, arg2: t.CConst | str, arg3: t.CConst | str | t.CPtr) -> Object.PyObjectPtr | t.State: pass
|
||||
|
||||
def _PyBytes_CAST(op) -> t.CDefine | PyBytesObject: (PyBytesObject | t.CPtr)(op)
|
||||
|
||||
def PyBytes_AS_STRING(op: Object.PyObjectPtr) -> t.CStatic | t.CInline | bytes:
|
||||
return _PyBytes_CAST(op).ob_sval
|
||||
|
||||
def _PyBytes_Join(sep: Object.PyObjectPtr, x: Object.PyObjectPtr) -> Object.PyObjectPtr | t.State: pass
|
||||
|
||||
class _PyBytesWriter:
|
||||
buffer: Object.PyObjectPtr
|
||||
allocated: Object.Py_ssize_t
|
||||
min_size: Object.Py_ssize_t
|
||||
use_bytearray: int
|
||||
overallocate: int
|
||||
use_small_buffer: int
|
||||
small_buffer: list[t.CChar, 512]
|
||||
|
||||
def _PyBytesWriter_Init(writer: _PyBytesWriter | t.CPtr) -> t.State: pass
|
||||
def _PyBytesWriter_Finish(writer: _PyBytesWriter | t.CPtr, str: str) -> Object.PyObjectPtr | t.State: pass
|
||||
def _PyBytesWriter_Dealloc(writer: _PyBytesWriter | t.CPtr) -> t.State: pass
|
||||
def _PyBytesWriter_Alloc(writer: _PyBytesWriter | t.CPtr, size: Object.Py_ssize_t) -> bytes | t.State: pass
|
||||
def _PyBytesWriter_Prepare(writer: _PyBytesWriter | t.CPtr, str: str, size: Object.Py_ssize_t) -> bytes | t.State: pass
|
||||
def _PyBytesWriter_Resize(writer: _PyBytesWriter | t.CPtr, str: str, size: Object.Py_ssize_t) -> bytes | t.State: pass
|
||||
def _PyBytesWriter_WriteBytes(writer: _PyBytesWriter | t.CPtr, str: str, bytes: t.CConst | bytes, size: Object.Py_ssize_t) -> bytes | t.State: pass
|
||||
Reference in New Issue
Block a user