Avatar
↑補足すると、 struct Sample {} // ng unsafeBitCast(Sample.self, to: UnsafeMutablePointer<Int>.self) // ok let type: Any.Type = Sample.self unsafeBitCast(type, to: UnsafeMutablePointer<Int>.self) みたいなコードがあって、コード的に同義じゃないのかなという話からunsafeBitCastのsrc/dstのサイズが実は両者違うという結論の中で出た話です 🦊 (edited)