# Nunavut @extent and @sealed Directives

**URL:** <https://forum.opencyphal.org/t/nunavut-extent-and-sealed-directives/1080>\
**Category:** Nunavut\
**Created:** [January 19, 2021, 10:25pm UTC](https://forum.opencyphal.org/t/nunavut-extent-and-sealed-directives/1080 "2021-01-19T22:25:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kyle-pawlowski](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/kyle-pawlowski/32/543_2.png) [@kyle-pawlowski](https://forum.opencyphal.org/u/kyle-pawlowski)\
**Post date:** [January 19, 2021, 10:25pm UTC](https://forum.opencyphal.org/t/nunavut-extent-and-sealed-directives/1080/1 "2021-01-19T22:25:32Z")

</div>

I able trying to generate C files from a PX4 fork of [public\_regulated\_data\_types](https://github.com/PX4/public_regulated_data_types). It seems that whenever I try to generate the files, the CLI prints an error like the following:

```auto
Either `@sealed` or `@extent ...` are required. The smallest valid extent for this type (i.e., its max bit length) is 32 bits (4 bytes). If you are not sure what this means, add the following line near the end of this definition: `@extent 64 * 8`

```

This is an issue with many of the files because this repository was forked before these directives were added to the end of files in the UAVCAN version of this repository. Is this a new requirement that was added for DSDL files recently? Or is there a command-line argument that will enable/disable these? I used this command:

```auto
nnvg --target-language c --target-endianness=little --enable-serialization-asserts c:/Path/To/Repo/public_regulated_data_types/regulated --lookup-dir c:/Path/To/Repo/public_regulated_data_types/uavcan  

```

Also, I’m trying to use Windows, but I verified this happens on a Linux machine as well.

P.S. When the CLI suggests an extent to use, it seems pretty big. If I’m understanding it right, it should be the number of bytes in the datatype \* 8 at a minimum. Anymore than that would be for the sake of future compatibility if anything needs to be added to the data type. Am I getting that right?

---

<div class="post-metadata">

**Author:** ![TSC21](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/tsc21/32/499_2.png) [@TSC21](https://forum.opencyphal.org/u/TSC21)\
**Post date:** [January 20, 2021, 7:54am UTC](https://forum.opencyphal.org/t/nunavut-extent-and-sealed-directives/1080/2 "2021-01-20T07:54:04Z")

</div>

The PX4 fork is not up-to-date with the current DSDL format. You rather rebase it or you use the UAVCAN one.

---

<div class="post-metadata">

**Author:** ![pavel.kirienko](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/pavel.kirienko/32/9_2.png) [@pavel.kirienko](https://forum.opencyphal.org/u/pavel.kirienko)\
**Post date:** [January 20, 2021, 9:56am UTC](https://forum.opencyphal.org/t/nunavut-extent-and-sealed-directives/1080/3 "2021-01-20T09:56:54Z")

</div>

I second Nuno’s response. Regarding this question:

> [@kyle-pawlowski](#):
>
> When the CLI suggests an extent to use, it seems pretty big. If I’m understanding it right, it should be the number of bytes in the datatype \* 8 at a minimum. Anymore than that would be for the sake of future compatibility if anything needs to be added to the data type. Am I getting that right?

Yes, you are getting this right. You can safely use large extent values because they do not affect the size of your transmissions or (generally) the size of your serialization buffers; the only affected parameter is the amount of memory allocated for deserialization buffers when receiving UAVCAN transfers.
