首页 > 解决方案 > 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 中执行指针拆箱?

预先感谢您的任何帮助。

此致,

布莱斯

标签: c#python.netpointerspython.net

解决方案


推荐阅读