Hello,
       I have a doubt regarding the  PER encoding of Information Object
Values.


FUNCTION ::= CLASS {

        &ArgumentType,
        &ResultType DEFAULT NULL,
        &Errors ERROR NULL,
        &Code INTEGER UNIQUE
}

The Above definition of FUNCTION is from the ASN.1 book by Olivier
Dubission.

funct1  FUNCTION ::= {
        &ArgumentType SEQUENCE {a INTEGER, b INTEGER},
        &ResultType INTEGER,
        &Code 1
}

funct2 FUNCTION ::= {
        &ArgumentType CHOICE {a INTEGER, b INTEGER},
        &ResultType INTEGER,
        &Code 2
}

MyFunction{FUNCTION:funct } ::= SEQUENCE {
        opcode FUNCTION.&Code({funct}),
        argument FUNCTION.&ArgumentType({funct} {@Opcode})
}


Is it true that argument field in MyFunction is encoded as an OpenType (ie)
Length encoding followed by the encoding of either SEQUENCE or INTEGER
depending on Opcode.

So Can I rewrite MyFunction as follows

MyFunction ::= SEQUENCE {
        opcode INTEGER,
        argument OCTET STRING
}


Thanks
krishna




-----------------------------------------------------------------------------------------------------------------------
Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers and
is intended for use only by the individual or entity to which it is
addressed, and may contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended
recipient or it appears that this mail has been forwarded to you without
proper authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at mailto:[EMAIL PROTECTED] and delete this mail
from your records.
------------------------------------------------------------------------------------------------------------------------

Reply via email to