예제 #1
0
 public static IEnumerable <VTableComponent> GetComponents(this VTableLayout vTableLayout)
 {
     for (var x = 0; x < vTableLayout.ComponentsCount; x++)
     {
         var component = vTableLayout.getComponents((uint)x);
         yield return(component);
     }
 }
예제 #2
0
        AST.VTableLayout VisitVTableLayout(VTableLayout layout)
        {
            var _layout = new AST.VTableLayout();

            for (uint i = 0; i < layout.ComponentsCount; ++i)
            {
                var component  = layout.getComponents(i);
                var _component = VisitVTableComponent(component);
                _layout.Components.Add(_component);
            }

            return(_layout);
        }
예제 #3
0
파일: AST.cs 프로젝트: RainsSoft/CppSharp
 protected VTableLayout(VTableLayout.Internal* native, bool isInternalImpl = false)
 {
     __Instance = new global::System.IntPtr(native);
 }
예제 #4
0
파일: AST.cs 프로젝트: RainsSoft/CppSharp
 private VTableLayout(VTableLayout.Internal native)
     : this(__CopyValue(native))
 {
     __ownsNativeInstance = true;
     NativeToManagedMap[__Instance] = this;
 }
예제 #5
0
파일: AST.cs 프로젝트: RainsSoft/CppSharp
 private static VTableLayout.Internal* __CopyValue(VTableLayout.Internal native)
 {
     var ret = Marshal.AllocHGlobal(24);
     CppSharp.Parser.AST.VTableLayout.Internal.cctor_1(ret, new global::System.IntPtr(&native));
     return (VTableLayout.Internal*) ret;
 }
예제 #6
0
파일: AST.cs 프로젝트: RainsSoft/CppSharp
 public static VTableLayout __CreateInstance(VTableLayout.Internal native)
 {
     return new VTableLayout(native);
 }
예제 #7
0
파일: AST.cs 프로젝트: CSRedRat/CppSharp
 protected VTableLayout(VTableLayout.Internal* native, bool skipVTables = false)
 {
     if (native == null)
         return;
     __Instance = new global::System.IntPtr(native);
 }
예제 #8
0
파일: AST.cs 프로젝트: CSRedRat/CppSharp
 public static VTableLayout __CreateInstance(VTableLayout.Internal native, bool skipVTables = false)
 {
     return new VTableLayout(native, skipVTables);
 }
예제 #9
0
 private VTableLayout(VTableLayout.__Internal native, bool skipVTables = false)
     : this(__CopyValue(native), skipVTables)
 {
     __ownsNativeInstance = true;
     NativeToManagedMap[__Instance] = this;
 }
예제 #10
0
 private static void* __CopyValue(VTableLayout.__Internal native)
 {
     var ret = Marshal.AllocHGlobal(12);
     global::CppSharp.Parser.AST.VTableLayout.__Internal.cctor_1(ret, new global::System.IntPtr(&native));
     return ret.ToPointer();
 }
예제 #11
0
파일: AST.cs 프로젝트: kidleon/CppSharp
 internal VTableLayout(VTableLayout.Internal native)
     : this(&native)
 {
 }
예제 #12
0
파일: AST.cs 프로젝트: kidleon/CppSharp
 internal VTableLayout(VTableLayout.Internal* native)
     : this(new global::System.IntPtr(native))
 {
 }
예제 #13
0
파일: AST.cs 프로젝트: KonajuGames/CppSharp
 private VTableLayout(VTableLayout.Internal native)
     : this(__CopyValue(native))
 {
     __ownsNativeInstance = true;
 }
예제 #14
0
파일: AST.cs 프로젝트: vovkasm/CppSharp
 internal VTableLayout(VTableLayout.Internal native)
     : this(__CopyValue(native))
 {
 }