Byte: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:


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


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

Revision as of 11:21, 4 August 2011

Template:Otherlang2 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, byte is a typedef for unsigned char.