Questions tagged [byte]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer

Mangle words to bytearray of lo/hibytes

I would like to refactor the following code snippet adapted from a project I'm involved. It is part of a code to control power outlets via network. The code snippet was written by myself based on the ...
Looser User's user avatar
6 votes
1 answer

General bytes to number converter (c++)

I've written a bytes to number converter for cpp similar to the python int.from_bytes. It does not make any assumptions on: The endianness of the input buffer The ...
Sam Coutteau's user avatar
0 votes
1 answer

Best way to convert the string with Byte sequence to Byte Array

We had a string with byte array (hexadecimal) sequence, like: ...
Igor's user avatar
  • 182
2 votes
1 answer

Base64 encoder in Assembly x86-64 Linux language

We were asked to create a Base64 encoder for Assembly x86-64 on Linux. Was wondering how my code below could be improved, be it notation or anything else. We only had Assembly for 3 months so I'm not ...
user avatar
2 votes
1 answer

Multiplayer game byte array serializer with unity

I I'm trying to make an multiplayer game using golang and unity. Golang server side checking units on scene(like a character move). It also sends the information (position, health) of the units on ...
snn's user avatar
  • 23
1 vote
1 answer

Safely and Quickly Trim a Byte Array of Audio in Java

I'm trying to take a raw byte array of audio and trim it. The user selects a start and end value using a range slider. ...
user avatar
1 vote
1 answer

Byte array comparison - efficiency

I have a TCP Listener with NetworkStream that reads 530 bytes from the Client once a second. Within the TCP Listener ...
W.Donald's user avatar
2 votes
1 answer

C++: swapping bytes of an uint64_t

This question is about swapping bytes of an uint64_t value, or in other words, about converting between endianness of an integer value: ...
coderodde's user avatar
  • 27.5k
4 votes
1 answer

Command-line English Hangman game

Introduction As a Python neophyte, I implemented the Hangman game as a practice, which operates case-insensitively on the 26 English letters. My biggest concern at the moment is my use of ...
L. F.'s user avatar
  • 9,508