zserio icon indicating copy to clipboard operation
zserio copied to clipboard

Consider to introduce new zserio type for offsets

Open mikir opened this issue 8 months ago • 0 comments

It would be more convenient for users, if Zserio will support directly the offset type:

struct Schema
{
    offset32 myOffset;
    uint8 someValue;
    varsize someVariableSizedValue;
myOffset:
   string stringValue;
};

The following types should be supported:

  • offset16 with the underlying type uint16
  • offset32 with the underlying type uint32
  • offset64 with the underlying type uint64

However, the old syntax should be still valid (uint16 myOffset) because of the backward compatibility.

For more info, please have a look to the issue https://github.com/ndsev/zserio/issues/640.

mikir avatar Jun 21 '24 10:06 mikir