-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
0.6 compat & rename at-struct -> at-io
Also disable travis testing on OS X
- Loading branch information
Showing
5 changed files
with
32 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
language: julia | ||
os: | ||
- linux | ||
- osx | ||
julia: | ||
- 0.5 | ||
- nightly | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,25 @@ | ||
# StructIO | ||
|
||
StructIO is inspired by StrPack. It is intended to be able to experiment with a | ||
few new ideas without interrupting existing users of StrPack until it's ready, | ||
but I do expect it to be merged in eventually. | ||
|
||
[![StructIO](http://pkg.julialang.org/badges/StructIO_0.5.svg)](http://pkg.julialang.org/?pkg=StructIO) | ||
[![Build Status](https://travis-ci.org/Keno/StructIO.jl.svg?branch=master)](https://travis-ci.org/Keno/StructIO.jl) | ||
|
||
Generates IO methods (`sizeof`, `pack`, `unpack`) from structure definitions. | ||
|
||
# Example usage | ||
```julia | ||
julia> using StructIO | ||
|
||
julia> @io struct TwoUInt64s | ||
x::UInt64 | ||
y::UInt64 | ||
end | ||
|
||
julia> buf = IOBuffer(collect(UInt8(1):UInt8(16))); | ||
|
||
julia> seekstart(buf); unpack(buf, TwoUInt64s) # Default endianness depends on machine | ||
TwoUInt64s(0x0807060504030201, 0x100f0e0d0c0b0a09) | ||
|
||
julia> seekstart(buf); unpack(buf, TwoUInt64s, :BigEndian) | ||
TwoUInt64s(0x0102030405060708, 0x090a0b0c0d0e0f10) | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
julia 0.5- | ||
julia 0.5 | ||
Compat 0.18.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters