Byte

From Valve Developer Community
Revision as of 22:58, 7 April 2023 by Lxm6 (talk | contribs)
Jump to navigation Jump to search
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,[Clarify] byte is a typedef for unsigned char.