Chapter 19. Generated Metadata Methods

Table of Contents

IsRequired
GetValueRange

In version 6.8, ASN1C adds the ability to generate methods to inspect the elements in a SEQUENCE or SET. Using the -genmetadata option, users can generate the following methods:

These methods provide access to syntactic information present in the schema used during code generation: whether the elements in a SEQUENCE or SET are required or optional, and what, if any, value range may be applied to the elements. The following sections describe these methods in detail.