Created
February 27, 2021 07:40
-
-
Save timbaev/3fd39de5b792621548fe37d310498f63 to your computer and use it in GitHub Desktop.
[Class] #memorySwift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PaidService { | |
let id: String | |
let name: String | |
let isActive: Bool | |
let expiresAt: Date? | |
} | |
MemoryLayout<PaidService>.size // 8 | |
MemoryLayout<PaidService>.alignment // 8 | |
MemoryLayout<PaidService>.stride // 8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment