def sizeof(self, context=None) -> int:
        """
        Return the size of the construct in bytes.

        :param context: Optional context dictionary.
        """
        if context is None:
            context = Context()
        if not isinstance(context, Context):
            context = Context(context)
        try:
            return self._sizeof(context)
        except Error:
            raise
        except Exception as exc:
            raise SizeofError(str(exc))
Return the size of the construct in bytes.

        :param context: Optional context dictionary.