> How would I be able to represent the following in ASN.1 ?
> C structure:

> struct A
> {
>     unsigned a1:1;
>     unsigned a2:1;
>     unsigned a3:1;
>     unsigned a4:1;
> }

A ::= SEQUENCE
{
a1 BOOL,
a2 BOOL,
a3 BOOL,
a4 BOOL
}

> Will the encoding in ASN.1 use any optimization techniques for instance
> representing the struct
> in a single byte ?

If you use PER, yes.

Saludos,
                                        HoraPe
---
Horacio J. Peņa
[EMAIL PROTECTED]
[EMAIL PROTECTED]

Reply via email to