mirror of
https://github.com/aaru-dps/libaaruformat.git
synced 2026-02-06 05:27:03 +00:00
[PR #4] [MERGED] Add flux implementation #4
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/aaru-dps/libaaruformat/pull/4
Author: @FakeShemp
Created: 12/21/2025
Status: ✅ Merged
Merged: 1/4/2026
Merged by: @claunia
Base:
devel← Head:fakeshemp/flux📝 Commits (6)
65d34b1Add flux implementationd644f81Address some Sonar issues588b354Print more verbose info for flux images with tool86b6680Add data type to datastream blockc412030Use block alignment offset instead of absolute offset8693766Use lazy loading of flux captures📊 Changes
20 files changed (+2809 additions, -21 deletions)
View changed files
📝
CMakeLists.txt(+2 -1)➕
docs/spec/blocks/datastream_payload.adoc(+83 -0)📝
docs/spec/blocks/flux.adoc(+58 -15)📝
docs/spec/spec.adoc(+4 -0)📝
docs/spec/version_history.adoc(+2 -0)📝
include/aaruformat/context.h(+10 -0)📝
include/aaruformat/decls.h(+12 -0)📝
include/aaruformat/enums.h(+6 -2)📝
include/aaruformat/errors.h(+1 -0)📝
include/aaruformat/structs.h(+1 -0)➕
include/aaruformat/structs/flux.h(+306 -0)📝
include/internal.h(+2 -0)➕
src/blocks/flux.c(+1331 -0)📝
src/close.c(+677 -0)📝
src/create.c(+1 -0)📝
src/open.c(+5 -0)📝
templates/aaruformat.bt(+3 -1)📝
templates/aaruformat.hexpat(+53 -2)📝
tool/convert.c(+140 -0)📝
tool/info.c(+112 -0)📄 Description
Add flux handling to libaaruformat.
The flux implementation has been rewritten quite a bit from the way it was thought out previously. The old way of doing it didn't really work in practice. Hence, this is just a draft, as I'm looking for a bit of input.
The largest difference is the addition of a
DataStreamPayloadBlockthat basically can handle a stream of data of variable length. I have tried to write it in such a way that it could also be used for bitstreams when that is added, as well as any other arbitrary data really, like pictures etc.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.