let autoreleasingBuffer = AutoreleasingUnsafeMutablePointer<AnyClass?>(buffer) objc_getClassList(autoreleasingBuffer, classesCount) var classes = [AnyClass]() for i in 0 ..< classesCount { if let currentClass: AnyClass = buffer[Int(i)] { classes.append(currentClass) } } buffer.dealloc(Int(classesCount))
uintptr_t data_NEVER_USE; struct swift_data *swiftData; int an_int_we_dont_need_1; int an_int_we_dont_need_2; int an_int_we_dont_need_3; int an_int_we_dont_need_4; int struct_size; int an_int_we_dont_need_5; IMP vtable[20]; }