Constructs

[WIP] A declarative deserialization-serialization for binary data. Inspired by Construct.

https://github.com/miroox/constructs.jl

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

julia parser serialization
Last synced: 6 months ago · JSON representation ·

Repository

[WIP] A declarative deserialization-serialization for binary data. Inspired by Construct.

Basic Info
Statistics
  • Stars: 6
  • Watchers: 1
  • Forks: 0
  • Open Issues: 1
  • Releases: 3
Topics
julia parser serialization
Created over 4 years ago · Last pushed over 1 year ago
Metadata Files
Readme License Citation

README.md

Constructs

Stable Dev Build Status Coverage

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

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
enhancement (2) bug (1)
Pull Request Labels
push_preview (1)

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.

  • Versions: 3
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 9.9%
Average: 38.8%
Dependent packages count: 38.9%
Stargazers count: 52.9%
Forks count: 53.5%
Last synced: 6 months ago

Dependencies

.github/workflows/CI.yml actions
  • 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
.github/workflows/CompatHelper.yml actions
.github/workflows/TagBot.yml actions
  • JuliaRegistries/TagBot v1 composite