Top "Byte" questions

A unit of information usually corresponding to 8 bits.

convert JSON Type to Byte array format in java

I have a problem when I want to sending data using byte format in UDP protocol, the problem is when …

java json byte
Char into byte? (Java)

How come this happens: char a = '\uffff'; //Highest value that char can take - 65535 byte b = (byte)a; //Casting …

java char byte int primitive-types
Really 1 KB (KiloByte) equals 1024 bytes?

Until now I believed that 1024 bytes equals 1 KB (kilobyte) but I was reading on the internet about decimal and binary …

binary byte system decimal bit
How to detect string byte encoding?

I've got about 1000 filenames read by os.listdir(), some of them are encoded in UTF8 and some are CP1252. I …

python string unicode encoding byte
Set specific bit in byte

I'm trying to set bits in Java byte variable. It does provide propper methods like .setBit(i). Does anybody know …

java byte bit-manipulation
Python OpenCV load image from byte string

I'm trying to load image from string like as PHP function imagecreatefromstring How can I do that? I have MySQL …

python image opencv byte
Converting char array into byte array and back again

I'm looking to convert a Java char array to a byte array without creating an intermediate String, as the char …

java arrays char byte
c get nth byte of integer

I know you can get the first byte by using int x = number & ((1<<8)-1); or int x = …

c byte shift bit-shift
Why is the range of bytes -128 to 127 in Java?

I don't understand why the lowest value a byte can take is -128. I can see that the highest value …

java byte
How can I use Go append with two []byte slices or arrays?

I recently tried appending two byte array slices in Go and came across some odd errors. My code is: one:=…

arrays append byte go