コード例 #1
0
        static void SetVTable()
        {
            var vt = new SwiftIteratorProtocolVtable();

            vt.func0 = NextFuncReceiver;
            IteratorProtocolPinvokes.SetVtable(ref vt, StructMarshal.Marshaler.Metatypeof(typeof(T)));
        }
コード例 #2
0
 public SwiftIteratorProtocolProxy(IIteratorProtocol <T> proxiedType)
 {
     this.proxiedType = proxiedType;
     SwiftObject      = IteratorProtocolPinvokes.NewIteratorProtocol(StructMarshal.Marshaler.Metatypeof(typeof(T)));
     SwiftCore.Retain(SwiftObject);
     SwiftObjectRegistry.Registry.Add(this);
 }
コード例 #3
0
 public static SwiftMetatype GetSwiftMetatype()
 {
     return(IteratorProtocolPinvokes.IteratorProtocolMetadataAccessor(SwiftMetadataRequest.Complete, StructMarshal.Marshaler.Metatypeof(typeof(T))));
 }