binary_parser
Version, currently 0.1.03 versions
- 0.1.1latestFeb 20, 2017
- 0.1.0not indexedMar 13, 2022
- 0.0.1not indexedMar 13, 2022
github.com/DanSnow/crystal-binary_parser
A binary parser
21 stars
0 dependents
License: MIT
Nothing has been indexed for 0.1.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
binary_parser:
github: DanSnow/crystal-binary_parser
version: ~> 0.1.0Then run:
shards installshard.yml
No shard.yml has been indexed for 0.1.0. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
crystal-binary_parser
=====================
[](https://circleci.com/gh/DanSnow/crystal-binary_parser)
[](https://github.com/DanSnow/crystal-binary_parser/releases)
## Description ##
A binary parser for crystal.
## Install ##
Add this to your `shard.yml`
```yml
dependencies:
binary_parser:
github: DanSnow/crystal-binary_parser
```
## Feature ##
- Parse and write binary file
- Support array (fixed size or variable size)
- Support string (fixed length or valirable length)
- Support nested parser
- Support config which endian to use
- Calculate byte size
## Usage ##
```crystal
require "binary_parser"
class Parser < BinaryParser
uint8 :foo
end
# Load a file
parser = Parser.new
parser.load("<filename>")
# Or from IO
io = File.open("<filename>")
parser = Parser.new
parser.load(io)
# Now you can get your data
puts parser.foo
```
## License ##
MIT
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1.0- Tagged
- Mar 13, 2022
- Commit
b146a38188b7- Indexed
- not yet
Dependents
No indexed shard depends on this one yet.
Repository
github.com/DanSnow/crystal-binary_parser
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 12, 2026
- Synced
- Aug 12, 2026
- Versions
- 3