-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement new zserio type 'bytes' #448
Labels
c++
C++ language generator
core
Zserio core module
doc
HTML documentation generator
documentation
Documentation change is needed
enhancement
New feature or request
java
Java language generator
python
Python language generator
xml
XML generator
Milestone
Comments
This was referenced Nov 8, 2022
Mi-La
added a commit
that referenced
this issue
Nov 16, 2022
Mi-La
added a commit
that referenced
this issue
Nov 16, 2022
Mi-La
added a commit
that referenced
this issue
Nov 16, 2022
Mi-La
added a commit
that referenced
this issue
Nov 16, 2022
Mi-La
added a commit
that referenced
this issue
Nov 16, 2022
Mi-La
added a commit
that referenced
this issue
Nov 16, 2022
Mi-La
added a commit
that referenced
this issue
Nov 16, 2022
Mi-La
added a commit
that referenced
this issue
Nov 16, 2022
Mi-La
added a commit
that referenced
this issue
Nov 16, 2022
Mi-La
added a commit
that referenced
this issue
Nov 16, 2022
Mi-La
added a commit
that referenced
this issue
Nov 16, 2022
Mi-La
added a commit
that referenced
this issue
Nov 16, 2022
Mi-La
added a commit
that referenced
this issue
Nov 17, 2022
Mi-La
added a commit
that referenced
this issue
Nov 17, 2022
Mi-La
added a commit
that referenced
this issue
Nov 17, 2022
Mi-La
added a commit
that referenced
this issue
Nov 17, 2022
Mi-La
added a commit
that referenced
this issue
Nov 17, 2022
Mi-La
added a commit
that referenced
this issue
Nov 17, 2022
Mi-La
added a commit
that referenced
this issue
Nov 17, 2022
Mi-La
added a commit
that referenced
this issue
Nov 17, 2022
Mi-La
added a commit
that referenced
this issue
Nov 17, 2022
Mi-La
added a commit
that referenced
this issue
Nov 17, 2022
Mi-La
added a commit
that referenced
this issue
Nov 17, 2022
Mi-La
added a commit
that referenced
this issue
Nov 17, 2022
Mi-La
added a commit
that referenced
this issue
Nov 17, 2022
Mi-La
added a commit
that referenced
this issue
Nov 17, 2022
Mi-La
added a commit
that referenced
this issue
Nov 17, 2022
Mi-La
added a commit
that referenced
this issue
Nov 17, 2022
Mi-La
added a commit
that referenced
this issue
Nov 17, 2022
Mi-La
added a commit
that referenced
this issue
Nov 17, 2022
Mi-La
added a commit
that referenced
this issue
Nov 17, 2022
Mi-La
added a commit
that referenced
this issue
Nov 17, 2022
Mi-La
added a commit
that referenced
this issue
Nov 17, 2022
Mi-La
added a commit
that referenced
this issue
Nov 17, 2022
Mi-La
added a commit
that referenced
this issue
Nov 17, 2022
mikir
added a commit
that referenced
this issue
Nov 22, 2022
Mi-La
added a commit
that referenced
this issue
Nov 23, 2022
Mi-La
added a commit
that referenced
this issue
Nov 24, 2022
mikir
added a commit
that referenced
this issue
Nov 28, 2022
mikir
added a commit
that referenced
this issue
Nov 28, 2022
mikir
added a commit
that referenced
this issue
Dec 1, 2022
mikir
added a commit
that referenced
this issue
Dec 2, 2022
mikir
added a commit
that referenced
this issue
Dec 2, 2022
mikir
added a commit
that referenced
this issue
Dec 2, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
c++
C++ language generator
core
Zserio core module
doc
HTML documentation generator
documentation
Documentation change is needed
enhancement
New feature or request
java
Java language generator
python
Python language generator
xml
XML generator
Currently, if there is a need to model array of bytes, it is possible to use zserio array of
uint8
:However, such construct has the mapping to the native languages which does not have to be optimal for users:
std::vector<uint8_t>
short[]
typing.List[int]
For example, Java users might want special mapping to
byte[]
and Python users might want special mapping tobytearray
. In another words, users might want zserio type which just mean some array of bytes not array of numbers. This might be useful, e.g. for images. Therefore, we suggest to implement new zserio typebytes
.Comparing to current
extern
zserio type, new zserio typebytes
will store number of bytes (not bits) as avarsize
before array during serialization. This could potentially save some bits becausevarsize
can encode small values more efficiently.Mapping will be as follows:
std::vector<uint8_t>
byte[]
bytearray
The text was updated successfully, but these errors were encountered: