Byte: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
{{otherlang2
{{lang|Byte}}
|de=Byte:de
}}
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 [[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.


Line 10: Line 8:
[[Category:Variables]]
[[Category:Variables]]
[[Category:Glossary]]
[[Category:Glossary]]
[[Category:English]]

Revision as of 01:24, 15 May 2021

English (en)Deutsch (de)中文 (zh)Translate (Translate)

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.