Add OFLZ4Stream #124

Open
opened 2026-06-07 20:13:10 +02:00 by Ghost · 2 comments

Firefox stores certain profile data (like bookmarks and session backups) in .jsonlz4 files, which are JSON documents compressed using Mozilla’s custom LZ4 container format. I want to process them. Based on the answer from LLMs, I think I can just strip the first 12 bytes and process the LZ4 data with standard LZ4.

But there is no OFLZ4Stream for standard LZ4.

Firefox stores certain profile data (like bookmarks and session backups) in .jsonlz4 files, which are JSON documents compressed using Mozilla’s custom LZ4 container format. I want to process them. Based on the answer from LLMs, I think I can just strip the first 12 bytes and process the LZ4 data with standard LZ4. But there is no OFLZ4Stream for standard LZ4.

I'm the OP. I think I still need this feature.

I'm the OP. I think I still need this feature.
Owner

I'm not sure if there are many uses of LZ4, so this is gonna be a lower priority. OTOH, LZ4 seems to be simple, so maybe at some point.

In the meanwhile, I recommend to just use an implementation in C and create a lightweight wrapper for it.

I'm not sure if there are many uses of LZ4, so this is gonna be a lower priority. OTOH, LZ4 seems to be simple, so maybe at some point. In the meanwhile, I recommend to just use an implementation in C and create a lightweight wrapper for it.
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ObjFW/ObjFW#124
No description provided.