Byte: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
A byte is the minimum amount of memory allocatable. Even a [[bool]] is one byte (thus the benefits of [[BitVec]]). | A byte is the minimum amount of memory allocatable. Even a [[bool]] is one byte (thus the benefits of [[BitVec]]). | ||
* In Source, <code>byte</code> is a typedef for <code>unsigned char</code>. | * In [[Source]],{{clarify}} <code>byte</code> is a typedef for <code>unsigned char</code>. | ||
[[Category:Variables]] | [[Category:Variables]] | ||
[[Category: | [[Category:Source]] |
Revision as of 22:58, 7 April 2023
A byte is eight bits, the size of one char. A kilobyte (KB) is 1024 bytes, while a megabyte (MB) is 1024 kilobytes, a gigabyte (GB) is 1024 megabytes, etc.
A byte is the minimum amount of memory allocatable. Even a bool is one byte (thus the benefits of BitVec).
- In Source,[Clarify]
byte
is a typedef forunsigned char
.