public static int StackInfos(IntPtr v, int level, out StackInfo si) { var info = new IStackInfo { }; int ret = _StackInfos(v, level, out info); si = new StackInfo { Line = info.Line, #if SQUNICODE FuncName = Marshal.PtrToStringUni(info.FuncName), Source = Marshal.PtrToStringUni(info.Source), #else FuncName = Marshal.PtrToStringAnsi(info.FuncName), Source = Marshal.PtrToStringAnsi(info.Source), #endif }; return(ret); }
extern private static int _StackInfos(IntPtr v, int level, out IStackInfo si);
public virtual bool Matches(IStackInfo c) { return(c.GetResourceKey().Equals(Material) && c.GetQuantity() > StackSize); }