public static int SizeOfMarshalDirect(this VkEventCreateInfo s) { if (s == null) { throw new InvalidOperationException("Trying to directly marshal a null."); } return (s.Next.SizeOfMarshalIndirect()); }
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); }
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); }
public static int SizeOfMarshalIndirect(this VkEventCreateInfo s) => s == null ? 0 : s.SizeOfMarshalDirect() + VkEventCreateInfo.Raw.SizeInBytes;