# ASN.1 exclusive decode and undecoded rest

**URL:** <https://erlangforums.com/t/asn-1-exclusive-decode-and-undecoded-rest/3977>\
**Category:** Questions / Help\
**Tags:** asn1ct\
**Created:** [September 4, 2024, 4:58pm UTC](https://erlangforums.com/t/asn-1-exclusive-decode-and-undecoded-rest/3977 "2024-09-04T16:58:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vances](https://erlangforums.com/user_avatar/erlangforums.com/vances/32/710_2.png) [@vances](https://erlangforums.com/u/vances)\
**Post date:** [September 4, 2024, 4:58pm UTC](https://erlangforums.com/t/asn-1-exclusive-decode-and-undecoded-rest/3977/1 "2024-09-04T16:58:22Z")

</div>

Is it the case that [exclusive decode](https://www.erlang.org/doc/apps/asn1/asn1_spec.html#exclusive-decode) doesn’t support the `+undec_rest` option for returning the undecoded rest of the binary input?

The `+asn1config` flag is a bit of a mystery because it doesn’t seem to change the generated `.erl` however the `.beam` does have the extra functions.

---

<div class="post-metadata">

**Author:** ![bjorng](https://erlangforums.com/user_avatar/erlangforums.com/bjorng/32/174_2.png) [@bjorng](https://erlangforums.com/u/bjorng)\
**Post date:** [September 5, 2024, 8:21am UTC](https://erlangforums.com/t/asn-1-exclusive-decode-and-undecoded-rest/3977/2 "2024-09-05T08:21:52Z")

</div>

> [@vances](#):
>
> Is it the case that [exclusive decode](https://www.erlang.org/doc/apps/asn1/asn1_spec.html#exclusive-decode) doesn’t support the `+undec_rest` option for returning the undecoded rest of the binary input?

Yes, that seems to be the case.

> [@vances](#):
>
> The `+asn1config` flag is a bit of a mystery because it doesn’t seem to change the generated `.erl` however the `.beam` does have the extra functions.

I can’t reproduce that mystery. For me there are obvious differences in the `.erl` files when compiling with and without the `+asn1config` option.

---

<div class="post-metadata">

**Author:** ![vances](https://erlangforums.com/user_avatar/erlangforums.com/vances/32/710_2.png) [@vances](https://erlangforums.com/u/vances)\
**Post date:** [September 11, 2024, 6:11pm UTC](https://erlangforums.com/t/asn-1-exclusive-decode-and-undecoded-rest/3977/3 "2024-09-11T18:11:19Z")

</div>

Yeah, that mystery was solved, it was path confusion in my build system.

The feature interaction problem is resolved with a pull request ([#8798](https://github.com/erlang/otp/pull/8798)) I recently sent.
