SkillAgentSearch skills...

StrPack.jl

Swiss Army Knife for encoding and decoding binary streams

Install / Use

/learn @pao/StrPack.jl
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

StrPack: Structured Binary Stream Tools

One of the things I find annoying about MATLAB is dealing with binary data. There's a lot of boilerplate, a lot of fread(), and some weird thing involving a =>.

Enter StrPack. StrPack decodes binary streams to Julia composite types, handling stream endianness and padding bytes for the source ABI along the way. StrPack also encodes instances of Julia composite types to binary streams, setting endianness and adding padding if required to meet an ABI. Along with Julia's IOBuffer type, StrPack can also be used to convert between Julia composite types and buffers suitable for some C function arguments.

StrPack is a serializer/deserializer only in a very limited sense. StrPack only handles Julia's bits types or user types for which read(io, ::UserType) and write(io, data::UserType) have been defined. However, you could use StrPack to build those things.

Documentation

More complete documentation can be found on Read The Docs.

WARNING

This package is only semi-maintained. While it has been updated to work without warnings on Julia 1.0, there are no guarantees of correctness beyond the existing (and very limited) package tests. Use at your own risk.

Related Skills

View on GitHub
GitHub Stars26
CategoryDevelopment
Updated2y ago
Forks14

Languages

Julia

Security Score

75/100

Audited on May 20, 2023

No findings