Byte: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Le Glaconus (talk | contribs) No edit summary |
||
(4 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Source topicon}} | ||
{{LanguageBar}} | |||
}} | A {{wiki|byte}} is eight {{wiki|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 | |||
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]]{{clarify}}). | ||
* In | * In {{goldsrc|4}} and {{src|4}}, {{code|byte}} is a typedef for {{code|unsigned char}}, making its range 0-255. | ||
[[Category:Variables]] | [[Category:Variables]] | ||
[[Category: | [[Category:Source]] | ||