c# - Python中的指针拆箱
问题描述
下午好,
我有一个来自第三方 DLL 的类,具有以下 Buffer.Attach 方法:
public void Attach( byte* aBuffer, uint aSize)
可以使用以下方法从 C# 调用该方法:
aBuffer.Attach( (byte*) arrPointer , nBytes)
其中 arrPointer 是 System.Reflection.Pointer
如何使用 Python.Net 调用该方法。如果我只将 arrPointer 传递给我收到 TypeError: No method match given arguments 的方法。
换句话说,如何在 python 中执行指针拆箱?
预先感谢您的任何帮助。
此致,
布莱斯
解决方案
推荐阅读
- reactjs - 如何将基本路径附加到 Next.js 处理的所有路由?
- c# - 选择随机图像并根据特定类别显示它们
- apache - Rails 5.2 在生产模式下在 Apache 下无法启动 Puma
- android - GL_OUT_OF_MEMORY 和 android 应用程序使用统一崩溃?
- python - 您将如何参数化 Dagster 管道以运行具有多种不同配置/资产的相同实体?
- r - When is a data.frame in R numeric?
- python - 如何向 map(pd_read_csv) 添加其他参数?
- javascript - 如何获取 Firestore 集合中所有文档的子集合的特定文档?
- python - 在 python 中使用 ffmpeg 转换 rgb <> yuv 时出现奇怪的结果
- rider - Rider IDE - 尝试运行/调试应用程序时“没有要运行的项目”