cpy3

package
v0.0.0-...-a221c7f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CBytesToGoBytes

func CBytesToGoBytes(ustr uintptr, n int) []byte

func CStrToGoStr

func CStrToGoStr(ustr uintptr) string

func GoByteToCPtr

func GoByteToCPtr(b []byte) uintptr

Go的string转换为Lazarus的string

func GoStrToCStr

func GoStrToCStr(s string) uintptr

Go的string转换为Lazarus的string

func Lstrlen

func Lstrlen(lpString uintptr) int32

func LstrlenW

func LstrlenW(lpString uintptr) int32

func PyBool_FromLong

func PyBool_FromLong(l int64) uintptr

func PyBytes_FromString

func PyBytes_FromString(s string) uintptr

func PyCFunction_New

func PyCFunction_New(def uintptr, args uintptr) uintptr

func PyDict_Clear

func PyDict_Clear(obj uintptr)

func PyDict_DelItem

func PyDict_DelItem(obj uintptr, key uintptr) int

func PyDict_DelItemString

func PyDict_DelItemString(obj uintptr, key string) int

func PyDict_GetItem

func PyDict_GetItem(obj uintptr, key uintptr) uintptr

func PyDict_GetItemString

func PyDict_GetItemString(obj uintptr, key string) uintptr

func PyDict_Keys

func PyDict_Keys(obj uintptr) uintptr

func PyDict_New

func PyDict_New() uintptr

func PyDict_SetItem

func PyDict_SetItem(obj uintptr, key uintptr, val uintptr) int

func PyDict_SetItemString

func PyDict_SetItemString(obj uintptr, key string, val uintptr) int

func PyDict_Size

func PyDict_Size(obj uintptr) int64

func PyErr_NewException

func PyErr_NewException(name string, base uintptr, dict uintptr) uintptr

func PyErr_SetString

func PyErr_SetString(tp uintptr, message string)

func PyEval_GetBuiltins

func PyEval_GetBuiltins() uintptr

func PyEval_GetFrame

func PyEval_GetFrame() uintptr

func PyEval_GetGlobals

func PyEval_GetGlobals() uintptr

func PyEval_GetLocals

func PyEval_GetLocals() uintptr

func PyExc_Exception

func PyExc_Exception() uintptr

func PyExc_ValueError

func PyExc_ValueError() uintptr

func PyFrame_GetBack

func PyFrame_GetBack(frame uintptr) uintptr

func PyFrame_GetCode

func PyFrame_GetCode(frame uintptr) uintptr

func PyImport_AppendInittab

func PyImport_AppendInittab(name string, initfunc uintptr) int

func PyImport_Import

func PyImport_Import(name uintptr) uintptr

func PyInstanceMethod

func PyInstanceMethod(cfn uintptr) uintptr

func PyList_Append

func PyList_Append(obj uintptr, item uintptr) int

func PyList_GetItem

func PyList_GetItem(obj uintptr, index int64) uintptr

func PyList_GetSlice

func PyList_GetSlice(obj uintptr, low int64, high int64) uintptr

func PyList_Insert

func PyList_Insert(obj uintptr, index int64, item uintptr) int

func PyList_New

func PyList_New(len int64) uintptr

func PyList_SetItem

func PyList_SetItem(obj uintptr, index int64, item uintptr) int

func PyList_Size

func PyList_Size(obj uintptr) int64

func PyLong_AsDouble

func PyLong_AsDouble(obj uintptr) float64

func PyLong_AsLong

func PyLong_AsLong(obj uintptr) int

func PyLong_AsLongLong

func PyLong_AsLongLong(obj uintptr) int64

func PyLong_FromDouble

func PyLong_FromDouble(n float64) uintptr

func PyLong_FromLong

func PyLong_FromLong(n int) uintptr

func PyLong_FromLongLong

func PyLong_FromLongLong(n int64) uintptr

func PyMem_Free

func PyMem_Free(obj uintptr)

func PyMem_RawFree

func PyMem_RawFree(obj uintptr)

func PyModule_AddFunctions

func PyModule_AddFunctions(obj uintptr, functionsDef uintptr) int

func PyModule_AddIntConstant

func PyModule_AddIntConstant(obj uintptr, name string, value int64) int

func PyModule_AddObject

func PyModule_AddObject(obj uintptr, name string, value uintptr) int

func PyModule_AddObjectRef

func PyModule_AddObjectRef(obj uintptr, name string, value uintptr) int

func PyModule_AddStringConstant

func PyModule_AddStringConstant(obj uintptr, name string, value string) int

func PyModule_Create2

func PyModule_Create2(PyModuleDef uintptr, apiver int) uintptr

func PyModule_GetDict

func PyModule_GetDict(obj uintptr) uintptr

func PyModule_GetName

func PyModule_GetName(obj uintptr) string

func PyObject_Call

func PyObject_Call(obj uintptr, args uintptr, kwargs uintptr) uintptr

func PyObject_CallFunctionObjArgs

func PyObject_CallFunctionObjArgs(callable ...uintptr) uintptr

func PyObject_CallNoArgs

func PyObject_CallNoArgs(obj uintptr) uintptr

func PyObject_CallObject

func PyObject_CallObject(obj uintptr, args uintptr) uintptr

func PyObject_DelAttrString

func PyObject_DelAttrString(obj uintptr, attr_name string) int

func PyObject_GetAttr

func PyObject_GetAttr(obj uintptr, attr_name uintptr) uintptr

func PyObject_GetAttrString

func PyObject_GetAttrString(obj uintptr, attr_name string) uintptr

func PyObject_HasAttrString

func PyObject_HasAttrString(obj uintptr, attr_name string) int

func PyObject_SetAttrString

func PyObject_SetAttrString(obj uintptr, attr_name string, v uintptr) int

func PyObject_Str

func PyObject_Str(obj uintptr) uintptr

func PyObject_Type

func PyObject_Type(obj uintptr) uintptr

func PyRun_AnyFile

func PyRun_AnyFile(fp uintptr, filename string) int

func PyRun_SimpleFile

func PyRun_SimpleFile(fp uintptr, filename string) int

func PyRun_SimpleString

func PyRun_SimpleString(command string) int

func PyTuple_Check

func PyTuple_Check(obj uintptr) int64

func PyTuple_GetItem

func PyTuple_GetItem(obj uintptr, pos int64) uintptr

func PyTuple_GetSlice

func PyTuple_GetSlice(obj uintptr, low int64, high int64) uintptr

func PyTuple_New

func PyTuple_New(len int64) uintptr

func PyTuple_SetItem

func PyTuple_SetItem(obj uintptr, pos int64, o uintptr) uintptr

func PyTuple_Size

func PyTuple_Size(obj uintptr) int64

func PyType_GetModule

func PyType_GetModule(obj uintptr) uintptr

func PyType_Name

func PyType_Name(obj uintptr) string

func PyType_Type

func PyType_Type() uintptr

func PyUnicode_AsUTF8

func PyUnicode_AsUTF8(obj uintptr) string

func PyUnicode_DecodeFSDefault

func PyUnicode_DecodeFSDefault(u string) uintptr

func PyUnicode_FromString

func PyUnicode_FromString(u string) uintptr

func PyUnicode_GetLength

func PyUnicode_GetLength(obj uintptr) int64

func Py_BytesMain

func Py_BytesMain(args []string) int

func Py_DecRef

func Py_DecRef(obj uintptr)

func Py_DecodeLocale

func Py_DecodeLocale(arg string, size uintptr) string

func Py_Finalize

func Py_Finalize()

func Py_FinalizeEx

func Py_FinalizeEx() int

func Py_GetProgramName

func Py_GetProgramName() string

func Py_IncRef

func Py_IncRef(obj uintptr)

func Py_Initialize

func Py_Initialize()

func Py_InitializeEx

func Py_InitializeEx(initsigs int)

func Py_IsInitialized

func Py_IsInitialized() int

func Py_Main

func Py_Main(args []string) int

func Py_None

func Py_None() uintptr

func Py_SetPath

func Py_SetPath(path string)

func Py_SetProgramName

func Py_SetProgramName(name string)

func Py_SetPythonHome

func Py_SetPythonHome(home string)

func Py_fopen_obj

func Py_fopen_obj(path uintptr, mode string) uintptr

func StringToUTF16Ptr

func StringToUTF16Ptr(s string) uintptr

字符串到UTF16指针

func StringToUTF8Ptr

func StringToUTF8Ptr(s string) *uint8

字符串到UTF8指针

func UTF16PtrToString

func UTF16PtrToString(p uintptr) string

UTF16指针到字符串

Types

type Pointer

type Pointer = uintptr

func Memcpy

func Memcpy(dest, src Pointer, count SIZE_T) Pointer

type PyMethodDef

type PyMethodDef struct {
	Ml_name  uintptr
	Ml_meth  uintptr
	Ml_flags int
	Ml_doc   uintptr
}

type PyModuleDef

type PyModuleDef struct {
	M_base     PyModuleDef_Base
	M_name     uintptr
	M_doc      uintptr
	M_size     int64
	M_methods  uintptr
	M_slots    uintptr
	M_traverse uintptr
	M_clear    uintptr
	M_free     uintptr
}

type PyModuleDef_Base

type PyModuleDef_Base struct {
	Ob_base PyObject
	M_init  uintptr
	M_index uintptr
	M_copy  uintptr
}

type PyObject

type PyObject struct {
	//Ob_next   uintptr
	//Ob_prev   uintptr
	Ob_refcnt uintptr
	Ob_type   uintptr
}

func PyObjectFromPtr

func PyObjectFromPtr(ptr uintptr) *PyObject

func PyObject_HEAD_INIT

func PyObject_HEAD_INIT(ob_type uintptr) PyObject

type SIZE_T

type SIZE_T = uintptr

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL