What is a 'byte'?
-
sclh wrote: Does that means I am actually shrinking the size of the data? Nope. When you have an 8-bit binary number - that's a byte. Exmaples of bytes are 10010010, 10001000, 11111111, 0 (00000000), 10000001 etc. The decimal equivalent of the largest unsigned byte is 255. So if you have a byte variable, it can represent any of 256 values (0 included).
Ok, thank you for the info. Perhaps I will go and read up and find out my problem then I will consult help again.Thanks.
-
Hi, can someone tell me what is a byte? how many bits does 1 byte equals to?
-
the word byte comes from By Eight. Meaning they took eight bits together :-) No hurries, no worries.
No, it comes from the word "bite", but with changed spelling. Originally bytes could be 1-6 bits in length. http://en.wikipedia.org/wiki/Byte[^] http://www.catb.org/~esr/jargon/html/B/byte.html[^]
-
No, it comes from the word "bite", but with changed spelling. Originally bytes could be 1-6 bits in length. http://en.wikipedia.org/wiki/Byte[^] http://www.catb.org/~esr/jargon/html/B/byte.html[^]
-
A byte is equal to 8 bits. It has the same size as a character.
cedric moonen wrote: A byte is equal to 8 bits. Only for UTF-8. You could also have UTF-16 which would be a 16-bit byte (e.g., Unicode).
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
-
cedric moonen wrote: A byte is equal to 8 bits. Only for UTF-8. You could also have UTF-16 which would be a 16-bit byte (e.g., Unicode).
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
AFAIK, a byte is always 8-bits. [edit] I just saw the reference to the article that said there used to be 6-bit bytes, but today's byte is 8-bits in length. [/edit] I believe UTF-16 uses a 16-bit (i.e. 2 byte) "word". Hence, MBCS, DBCS, etc. refer to multi-byte, double-byte..., etc. /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com
-
AFAIK, a byte is always 8-bits. [edit] I just saw the reference to the article that said there used to be 6-bit bytes, but today's byte is 8-bits in length. [/edit] I believe UTF-16 uses a 16-bit (i.e. 2 byte) "word". Hence, MBCS, DBCS, etc. refer to multi-byte, double-byte..., etc. /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com
Fair enough. I rarely deal with such things, so I was just mainly throwing it out on the table for further discussion.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
-
And here I thought is was a contraction from the Old English - 'Byte Me!'
-
Ok. Thanks. Is it possible to compress 8bits into a byte using RLC( Run-Length Coding)?
No, to compress with rle you need at minimum 4 bytes (32 bits). I assume you read the article at http://www.arturocampos.com/ac_rle.html[^] about RLE. I also believe it explains rle compression pretty well. Do you have any specific questions about the article or rle? Is your problem homework or for some other purpose? I ask this because rle is definitly not the best algorithm to use. And there are several source code compression libraries that you can download and use for free. John