Top "Byte" questions

A unit of information usually corresponding to 8 bits.

Convert unsigned byte to signed byte

Is there an easy and elegant way to convert an unsigned byte value to a signed byte value in java? …

java byte unsigned signed
Is a byte always 8 bits?

I'm working through The Elements of Computing Systems when I read the following excerpt: The Hack computer includes a black-and-white …

byte bits
nodejs conversion from buffer data to byte array

I want to convert buffer data to byte array. Here's what I've tried import * as fs from 'fs'; [...] event:(data) =&…

arrays node.js byte typed-arrays
Good way to convert between short and bytes?

I need to take pairs of bytes in, and output shorts, and take shorts in and output pairs of bytes. …

c# .net byte short
Writing then reading in-memory bytes (BytesIO) gives a blank result

I wanted to try out the python BytesIO class. As an experiment I tried writing to a zip file in …

python byte gzip bytesio
Difference between byte vs Byte data types in C#

I noticed that in C# there are both a byte and Byte data type. They both say they are of …

c# byte
Converting 2 bytes to Short in C#

I'm trying to convert two bytes into an unsigned short so I can retrieve the actual server port value. I'm …

c# arrays byte short
How to `Serial.print()` "full" hexadecimal bytes?

I am programming Arduino and I am trying to Serial.print() bytes in hexadecimal format "the my way" (keep reading …

arduino hex byte println arduino-c++
convert Byte Array to Secret Key

I've been trying to convert a byte array to its original SecretKey, but I've no more ideas left. The most …

java byte secret-key
Python - How can I open a file and specify the offset in bytes?

I'm writing a program that will parse an Apache log file periodically to log it's visitors, bandwidth usage, etc.. The …

python file-io byte offset