Ejemplo n.º 1
0
        public static int SizeOfMarshalDirect(this VkEventCreateInfo s)
        {
            if (s == null)
            {
                throw new InvalidOperationException("Trying to directly marshal a null.");
            }

            return
                (s.Next.SizeOfMarshalIndirect());
        }
Ejemplo n.º 2
0
        public static VkEventCreateInfo.Raw *MarshalIndirect(this VkEventCreateInfo s, ref byte *unmanaged)
        {
            if (s == null)
            {
                return((VkEventCreateInfo.Raw *) 0);
            }
            var result = (VkEventCreateInfo.Raw *)unmanaged;

            unmanaged += VkEventCreateInfo.Raw.SizeInBytes;
            *result = s.MarshalDirect(ref unmanaged);
            return(result);
        }
Ejemplo n.º 3
0
        public static VkEventCreateInfo.Raw MarshalDirect(this VkEventCreateInfo s, ref byte *unmanaged)
        {
            if (s == null)
            {
                throw new InvalidOperationException("Trying to directly marshal a null.");
            }

            var pNext = s.Next.MarshalIndirect(ref unmanaged);

            VkEventCreateInfo.Raw result;
            result.sType = VkStructureType.EventCreateInfo;
            result.pNext = pNext;
            result.flags = s.Flags;
            return(result);
        }
Ejemplo n.º 4
0
 public static int SizeOfMarshalIndirect(this VkEventCreateInfo s) =>
 s == null ? 0 : s.SizeOfMarshalDirect() + VkEventCreateInfo.Raw.SizeInBytes;