[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: streaming decoding
From: |
Simon Josefsson |
Subject: |
Re: streaming decoding |
Date: |
Fri, 12 Aug 2011 14:45:42 +0200 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux) |
Dmitriy Anisimkov <address@hidden> writes:
> Is there way to decode binary stream with indefinite number of ASN.1
> defined records ?
> asn1Decoding is decoding only when file contains exact one record.
>
> I tried http://www.semantix.gr/asn1scc/ and http://lionet.info/asn1c
> generated decoders.
>
> Them decoded all records from binary file.
>
> Maybe libtasn1 has this possibility in API ?
The asn1Decoding tool can only decode one instance of the ASN.1 data.
You can indeed write your own tool to decode multiple instances of the
same struct from a stream, either using just the APIs directly or
modifying the asn1Decoding tool to do what you want.
/Simon
- streaming decoding, Dmitriy Anisimkov, 2011/08/12
- Re: streaming decoding,
Simon Josefsson <=