Skip to content
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

SCALE Sequence(fixed size) implementation #16

Closed
radkomih opened this issue Nov 25, 2022 · 0 comments
Closed

SCALE Sequence(fixed size) implementation #16

radkomih opened this issue Nov 25, 2022 · 0 comments
Assignees
Labels

Comments

@radkomih
Copy link
Collaborator

radkomih commented Nov 25, 2022

Array types have fixed size known at compile time, thus the size encoding is omitted.

From the spec:
In some cases, the length indicator is omitted if the length of the sequence is fixed and known by the decoder upfront. Such cases are explicitly stated by the definition of the corresponding type.

Go proposal that might help to make generic parameterized encoding of Array (Sequence with fixed size): golang/go#44253

Related: #4

@radkomih radkomih added the scale label Nov 25, 2022
@radkomih radkomih added this to the M1 - SCALE codec (2 weeks) milestone Nov 25, 2022
@radkomih radkomih self-assigned this Nov 25, 2022
@radkomih radkomih changed the title SCALE Arrays(fixed size) implementation SCALE Sequence(fixed size) implementation Dec 1, 2022
@radkomih radkomih closed this as completed Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

No branches or pull requests

1 participant