Skip to content

Instantly share code, notes, and snippets.

@nathankrishnan
Created April 9, 2017 18:07
Show Gist options
  • Save nathankrishnan/ea1dda602887d614fe988ccc273bb967 to your computer and use it in GitHub Desktop.
Save nathankrishnan/ea1dda602887d614fe988ccc273bb967 to your computer and use it in GitHub Desktop.
print(MemoryLayout<Bool>.size)
// A Bool is represented with 1 byte
print(MemoryLayout<Int>.size)
// An Int is represented with 8 bytes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment