Extracting content .img file

I am working on a project where we have to extract information from .img file. What is known, is that .img file contains image with 512x512 pixels, and size of each pixel is 2 bits of type short. We have to extract that image form the file. The ques...
more »

2017-10-18 12:10 (1) Answers

How do I Mimic Number.intBitsToFloat() in C#?

I have been going crazy trying to read a binary file that was written using a Java program (I am porting a Java library to C# and want to maintain compatibility with the Java version). Java Library The author of the component chose to use a float ...
more »

2017-05-16 08:05 (1) Answers

How get by git diff only binary files?

Now I'm using git diff --numstat to get a list of modified files. Those, that start with - - are binary files. For example: $ git diff --numstat first_commit_hash second_commit_hash But how do I get a list of only binary files? Is there any...
more »

2017-05-13 09:05 (0) Answers

Distribute C++ binaries across linux

I would like to distribute C++ binary that is created by using Eclipse ++ IDE, with the following settings: Cross GCC Compiler: gcc -std=c++17 Cross G++ Compiler: g++ -std=c++17 Tool Chain settings: Cross GCC Compiler Cross G++ Compiler Cross GCC L...
more »

2017-03-17 07:03 (1) Answers

Retrieving memory block from binary file

The overall goal is to search and read from a binary file as fast as possible. For a given finite set of parameters, p_1, p_2, ... , p_n, I want to be able to search a binary file and retrieve the contents corresponding to the parameters. The general...
more »

2017-01-23 23:01 (1) Answers

Saving data in Unity

The game is an open world game where you can walk and drive around with different vehicles and place structures on the ground. Because the world is huge I want player and different vehicles/structures to stay where they were left. For this reason I n...
more »

2017-01-03 23:01 (1) Answers

The MP3 documentation

id3.org has been down for the last day. Any substitute ? I found several websites but none of them contains the information I need and all of them redirect me to id3.org for full information. Any Website with full documentation ? ...
more »

2016-12-13 23:12 (1) Answers

Reading a list of Files as a Java 8 Stream

I have a (possibly long) list of binary files that I want to read lazily. There will be too many files to load into memory. I'm currently reading them as a MappedByteBuffer with FileChannel.map(), but that probably isn't required. I want the method...
more »

2016-09-09 16:09 (4) Answers

Ruby - Unpack irregular binary string

I have an irregular binary file that has been produced by an external program. The beginning of the file looks like this "mct_terrain_material\t\xF32\xE1Ao\xAFLA\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\xBFFrontColor\t\xF32\xE1A...
more »

2016-06-02 16:06 (1) Answers