Top "Byte" questions

A unit of information usually corresponding to 8 bits.

Appending a byte[] to the end of another byte[]

I have two byte[] arrays which are of unknown length and I simply want to append one to the end …

java byte bytearray arrays
How many bits is a "word"?

This is from the book Assembly Language Step By Step, Jeff Duntemann: Here’s the quick tour: A bit is …

byte bit
What does value & 0xff do in Java?

I have the following Java code: byte value = 0xfe; // corresponds to -2 (signed) and 254 (unsigned) int result = value & 0xff; …

java integer byte bitwise-and
How do I get total physical memory size using PowerShell without WMI?

I'm trying to get the physical memory size using PowerShell, but without using get-wmiobject. I have been using the following …

powershell memory byte wmi
How many bytes in a JavaScript string?

I have a javascript string which is about 500K when being sent from the server in UTF-8. How can I …

javascript string size byte
Convert dictionary to bytes and back again python?

I need to send the value of some variables between two machines and intend to do it using sockets. I …

python variables dictionary byte
How to print bytes in hexadecimal using System.out.println?

I've declared a byte array (I'm using Java): byte test[] = new byte[3]; test[0] = 0x0A; test[1] = 0xFF; test[2] = 0x01; How …

java system byte
Convert bytes to bits in python

I am working with Python3.2. I need to take a hex stream as an input and parse it at bit-level. …

python hex byte bits
How to store a byte array in Javascript

I'm going to be storing a large array of byte values (most likely over a million) in Javascript. If I …

javascript arrays html bytearray byte
How to get the value of a bit at a certain position from a byte?

If I have a byte, how would the method look to retrieve a bit at a certain position? Here is …

java byte bit