That's the pointer I was looking for - I will take a look, thanks!

On Friday, May 15, 2015 at 9:04:37 AM UTC-4, Isaiah wrote:
>
> Have you seen StrPack?
> https://github.com/pao/StrPack.jl
>
> It has some very nice tools (and tricks) for de/serializing binary data.
>
> fixed sized char arrays
>
>
> On 0.3 you can simulate these with immutables. On 0.4, NTuple is now 
> inlined:
>
> julia> immutable foo2
>        x::Int
>        y::Int
>        z::NTuple{282,Int}
>        end
>
> julia> sizeof(foo2)
> 2272
>
> On Fri, May 15, 2015 at 8:58 AM, Michael Francis <mdcfr...@gmail.com 
> <javascript:>> wrote:
>
>> Is there a better way than a long list of 
>>
>> sid = reinterpret( Clong, bytes[16:20])
>>
>> the data structure could in theory be represented by a structure but it 
>> has embedded null bytes and fixed sized char arrays. The docs seem to 
>> indicate that these are not well supported. 
>>
>> Ideally I'd like to be able to define a type and then bind the unpack to 
>> it with custom decoding. 
>>  
>>
>>
>>
>

Reply via email to