Constructs
[WIP] A declarative deserialization-serialization for binary data. Inspired by Construct.
Science Score: 31.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (5.7%) to scientific vocabulary
Keywords
Repository
[WIP] A declarative deserialization-serialization for binary data. Inspired by Construct.
Basic Info
- Host: GitHub
- Owner: miRoox
- License: mit
- Language: Julia
- Default Branch: master
- Homepage: https://miroox.github.io/Constructs.jl/
- Size: 488 KB
Statistics
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 1
- Releases: 3
Topics
Metadata Files
README.md
Constructs
A declarative deserialization-serialization for binary data. Inspired by Construct.
Basic usage
@construct defines the struct type and the corresponding deserialize/serialize methods.
The following Bitmap has a BMP header, width and height in UInt16 little-endian format,
and pixel which is a 2-dimensional byte array with the specified width and height.
julia
@construct struct Bitmap
::Const(b"BMP")
width::UInt16le
height::UInt16le
pixel::SizedArray(UInt8, this.height, this.width) # Julia arrays are column major
end
julia
julia> deserialize(Bitmap, b"BMP\x02\x00\x03\x00\x01\x02\x03\x04\x05\x06")
Bitmap(0x0002, 0x0003, UInt8[0x01 0x04; 0x02 0x05; 0x03 0x06])
julia
julia> serialize(Bitmap(3, 2, UInt8[1 2 3; 7 8 9]))
13-element Vector{UInt8}:
0x42
0x4d
0x50
0x03
0x00
0x02
0x00
0x01
0x07
0x02
0x08
0x03
0x09
Owner
- Name: Yong-an Lu
- Login: miRoox
- Kind: user
- Location: China
- Company: Intel
- Website: https://miroox.github.io/
- Twitter: miroox6
- Repositories: 6
- Profile: https://github.com/miRoox
Coding for fun.
Citation (CITATION.bib)
@misc{Constructs.jl,
author = {Yong-an Lu <miroox@outlook.com>},
title = {Constructs.jl},
url = {https://github.com/miRoox/Constructs.jl},
version = {v0.2.0},
year = {2022},
month = {10}
}
GitHub Events
Total
- Watch event: 1
Last Year
- Watch event: 1
Issues and Pull Requests
Last synced: 7 months ago
All Time
- Total issues: 4
- Total pull requests: 22
- Average time to close issues: 7 days
- Average time to close pull requests: 9 days
- Total issue authors: 2
- Total pull request authors: 1
- Average comments per issue: 0.75
- Average comments per pull request: 0.86
- Merged pull requests: 22
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 1
- Pull requests: 2
- Average time to close issues: about 3 hours
- Average time to close pull requests: about 8 hours
- Issue authors: 1
- Pull request authors: 1
- Average comments per issue: 0.0
- Average comments per pull request: 1.0
- Merged pull requests: 2
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- miRoox (3)
- JuliaTagBot (1)
Pull Request Authors
- miRoox (24)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
- Total downloads: unknown
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 3
juliahub.com: Constructs
[WIP] A declarative deserialization-serialization for binary data. Inspired by Construct.
- Homepage: https://miroox.github.io/Constructs.jl/
- Documentation: https://docs.juliahub.com/General/Constructs/stable/
- License: MIT
-
Latest release: 0.2.0
published about 3 years ago
Rankings
Dependencies
- actions/checkout v2 composite
- codecov/codecov-action v2 composite
- julia-actions/cache v1 composite
- julia-actions/julia-buildpkg v1 composite
- julia-actions/julia-docdeploy v1 composite
- julia-actions/julia-processcoverage v1 composite
- julia-actions/julia-runtest v1 composite
- julia-actions/setup-julia v1 composite
- JuliaRegistries/TagBot v1 composite