Beispiel #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);
     }
 }
Beispiel #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);
        }
Beispiel #3
0
 protected VTableLayout(VTableLayout.Internal* native, bool isInternalImpl = false)
 {
     __Instance = new global::System.IntPtr(native);
 }
Beispiel #4
0
 private VTableLayout(VTableLayout.Internal native)
     : this(__CopyValue(native))
 {
     __ownsNativeInstance = true;
     NativeToManagedMap[__Instance] = this;
 }
Beispiel #5
0
 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;
 }
Beispiel #6
0
 public static VTableLayout __CreateInstance(VTableLayout.Internal native)
 {
     return new VTableLayout(native);
 }
Beispiel #7
0
 protected VTableLayout(VTableLayout.Internal* native, bool skipVTables = false)
 {
     if (native == null)
         return;
     __Instance = new global::System.IntPtr(native);
 }
Beispiel #8
0
 public static VTableLayout __CreateInstance(VTableLayout.Internal native, bool skipVTables = false)
 {
     return new VTableLayout(native, skipVTables);
 }
Beispiel #9
0
 private VTableLayout(VTableLayout.__Internal native, bool skipVTables = false)
     : this(__CopyValue(native), skipVTables)
 {
     __ownsNativeInstance = true;
     NativeToManagedMap[__Instance] = this;
 }
Beispiel #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();
 }
Beispiel #11
0
 internal VTableLayout(VTableLayout.Internal native)
     : this(&native)
 {
 }
Beispiel #12
0
 internal VTableLayout(VTableLayout.Internal* native)
     : this(new global::System.IntPtr(native))
 {
 }
Beispiel #13
0
 private VTableLayout(VTableLayout.Internal native)
     : this(__CopyValue(native))
 {
     __ownsNativeInstance = true;
 }
Beispiel #14
0
 internal VTableLayout(VTableLayout.Internal native)
     : this(__CopyValue(native))
 {
 }