Questions tagged [binary]
The binary tag has no summary.
15 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
2
answers
172
views
Convert binary string to text base64 [closed]
I have a dictionary with a lot of symbols, each of which is encoded in a huffman binary string.
Example:
Symbol
Huffman Code
you
010
shall
0111
not
00111
pass
00001
...
...
Therefore I encode the ...
9
votes
4
answers
1k
views
Reverse Engineering Data Files (Binary Visualization)
Binary Visualization based on Christopher Domas talk: youtube link and this Russian programmer where I discovered this talk: youtube link.
Algorithm:
Scan the pairs of bytes of a file with a sliding ...
3
votes
1
answer
131
views
Any amount bits integer
This class is meant to work exactly as an unsigned integer should work, but it limits the value based on a set amount of bits.
...
5
votes
1
answer
317
views
Most compact data format for a shopping cart
I'm trying to build a format that can represent the user's cart on my website in the most compact way. The website is related to computer parts and there are 23 product categories. Each product has an ...
-2
votes
1
answer
604
views
How can I optimize C++ serialization? [closed]
I want to serialize a C++ class Ramdomclass . Below is the serialization function.
...
1
vote
3
answers
226
views
Convert from decimal to binary and octal
I wrote a program that implements an algorithm that converts from decimal to binary and octal
Please criticize my implementation. What else can I do to improve?
...
1
vote
2
answers
608
views
Reading 12-bit words from 32-bit stream
I have a device (ADC) that stores its samples in a 32-bit buffer and each sample is a 12-bit word :
I needed an algorithm to read those samples to a container (say ...
4
votes
2
answers
1k
views
1
vote
1
answer
3k
views
Float to binary conversion
I wrote a program to convert float to it's binary IEEE754 representation in C.
Any improvements to this is appreciated
...
6
votes
4
answers
2k
views
Bytes to binary conversion function
I created a quick function to convert n bytes into binary for my student.
She is not on that level yet, but I think it would be best for her if my demonstrative ...
5
votes
1
answer
695
views
Binary IO inspired by struct pack
About
I'm writing a header-only template library for helping with binary IO. It is inspired by pack-d, which is in turn inspired by Python's struct module. I've only finished the output part and ...
3
votes
2
answers
581
views
How to simplify and optimize bitwise get/set operations on a large bit buffer in JavaScript?
tl;dr: How could you rewrite the buf_get and buf_set functions below to be most optimal?
It took me a long time and a lot of ...
6
votes
1
answer
409
views
binary data shell echo generator
edit: here is a cleaned-up version incorporating most (but not all) feedback, thanks guys; https://gist.github.com/divinity76/79efd7b8c0d7849b956cd194659c98e5
edit2, 2021年07月16日: found a bug (possible ...
3
votes
1
answer
246
views
Swapping Nibbles
I have small (<250 bytes) chunk of binary data, where I know that almost always, the first nibble is going to be zero 0. For example, in hex:
...
1
vote
1
answer
260
views
Serializing object graph to proprietary binary file
I'm creating a class library to read/write .3di files which are binary files describing 3D models for a video game. This review is for the write/serialization process.
I've mapped the different ...