internal static SwiftValueWitnessTable FromDylib(DynamicLib dylib, string witnessSymbolName) { var wit = dylib.FindSymbolAddress(witnessSymbolName); if (wit == IntPtr.Zero) { return(null); } return(FromMemory(wit)); }
internal static SwiftNominalTypeDescriptor?FromDylib(DynamicLib dylib, string nomDescSymbolName) { var nom = dylib.FindSymbolAddress(nomDescSymbolName); if (nom == IntPtr.Zero) { return(null); } return(new SwiftNominalTypeDescriptor(nom)); }
internal static IntPtr ProtocolWitnessTableFromDylib(DynamicLib dylib, string witnessSymbolName) { var wit = dylib.FindSymbolAddress(witnessSymbolName); return(wit); }