Common Uses
The byte is also defined as a data type in certain programming languages. The C and C++ programming languages, for example, define byte as an "addressable unit of data storage large enough to hold any member of the basic character set of the execution environment" (clause 3.6 of the C standard). The C standard requires that the char integral data type is capable of holding at least 256 different values, and is represented by at least 8 bits (clause 5.2.4.2.1). Various implementations of C and C++ reserve 8, 9, 16, 32, or 36 bits for the storage of a byte. The actual number of bits in a particular implementation is documented as CHAR_BIT as implemented in the limits.h file. Java's primitive byte data type is always defined as consisting of 8 bits and being a signed data type, holding values from −128 to 127. The C# programming language, along with other .NET-languages, has both the unsigned byte (named byte) and the signed byte (named sbyte), holding values from 0 to 255 and -128 to 127, respectively.
In data transmission systems a byte is defined as a contiguous sequence of binary bits in a serial data stream, such as in modem or satellite communications, which is the smallest meaningful unit of data. These bytes might include start bits, stop bits, or parity bits, and thus could vary from 7 to 12 bits to contain a single 7-bit ASCII code.
Read more about this topic: Byte
Famous quotes containing the word common:
“This, our respectable daily life, on which the man of common sense, the Englishman of the world, stands so squarely, and on which our institutions are founded, is in fact the veriest illusion, and will vanish like the baseless fabric of a vision; but that faint glimmer of reality which sometimes illuminates the darkness of daylight for all men, reveals something more solid and enduring than adamant, which is in fact the cornerstone of the world.”
—Henry David Thoreau (18171862)
“A country is strong which consists of wealthy families, every member of whom is interested in defending a common treasure; it is weak when composed of scattered individuals, to whom it matters little whether they obey seven or one, a Russian or a Corsican, so long as each keeps his own plot of land, blind in their wretched egotism, to the fact that the day is coming when this too will be torn from them.”
—Honoré De Balzac (17991850)