Top "Byte" questions

A unit of information usually corresponding to 8 bits.

Sending an integer serially in Arduino

I need to send an integer, say between 0-10000, to Arduino using serial communication. What's the best way of doing …

integer char byte arduino serial-communication
how to get byte size of type in generic list?

I have this generic list and I want to get the byte size of the type like if T is …

c# list byte sizeof generic-list
Gradle - Copying / Renaming file - making 0 file size / bytes for all files

I'm using Gradle build to compile Java. During the build, I get successful build deliverables BUT I want to add …

copy gradle byte rename zero
String from byte array doesn't get trimmed in C#?

I have a byte array similar to this (16 bytes): 71 77 65 72 74 79 00 00 00 00 00 00 00 00 00 00 I use this to convert it to a string and trim …

c# arrays string byte trim
TypeError: must be string without null bytes, not str

I'm trying to run this code, to run the same command (with little changes) with every frame that I have: …

python null byte os.system
Converting raw byte data to float[]

I have this code for converting a byte[] to float[]. public float[] ConvertByteToFloat(byte[] array) { float[] floatArr = new float[array.…

c# byte bitconverter
What is the fastest algorithm for division of crazy large integers?

I need to divide numbers represented as digits in byte arrays with non standard amount of bytes. It maybe 5 bytes …

algorithm math byte division digit
Convert a ushort value into two byte values in C#

How do I split a ushort into two byte variables in C#? I tried the following (package.FrameID is ushort): …

c# byte boolean-logic ushort
Is addition of byte converts to int because of java language rules or because of jvm?

byte a = 1; byte b = 1; byte c = a + b; Throws error: possible loss of precision byte subt = a_s - a_…

java type-conversion byte operation type-promotion
Purpose of byte type in Java

I read this line in the Java tutorial: byte: The byte data type is an 8-bit signed two's complement integer. …

java byte primitive