Byte: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (wikipedia link)
No edit summary
Line 1: Line 1:
A [[Wikipedia:Byte|byte]] is eight [[Wikipedia:Bit|bits]], the size of one [[char]]. A kilobyte (KB) is approximately 1000 bytes, while a megabyte (MB) is approximately one million bytes. A gigabyte (GB) is a thousand megabytes.
A [[Wikipedia:Byte|byte]] is eight [[Wikipedia:Bit|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]]).


[[Category:Variables]]
[[Category:Variables]]
[[Category:Glossary]]
[[Category:Glossary]]

Revision as of 04:56, 4 February 2011

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).