discard_output Specification

Sometimes it is necessary to describe parts of the external format as an in_map, despite the lack of interest in processing the decoded data. That is, when there are more complex types of filler data and this information is to be discarded.


Example - discard_output specification

in_map FillerInMap: external(FillerRecord),
internal(EmptyInternal), discard_output {
    automatic;
};

in_map DataInMap: external(DataRecord),
target_internal(DataTarget) {
    automatic;
};

decoder TotalDecoder: in_map(FillerInMap), in_map(DataInMap);

This example produces DataTarget UDRs and discards any filler (assuming that the referred formats are properly defined).