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

Consider adding support to define remaining data size #16

Open
joachimmetz opened this issue Jul 11, 2018 · 0 comments
Open

Consider adding support to define remaining data size #16

joachimmetz opened this issue Jul 11, 2018 · 0 comments
Assignees

Comments

@joachimmetz
Copy link
Member

joachimmetz commented Jul 11, 2018

Consider adding support to define remaining data size

name: mru_value_string_and_shell_item
type: structure
attributes:
  byte_order: little-endian
members:
- name: string
  type: string
  encoding: utf-16-le
  element_data_type: wchar16
  elements_terminator: "\x00\x00"
- name: shell_item
  type: stream
  element_data_type: byte
  elements_data_size: <<remaining data size>>

Maybe instead of a structure use a format data type?

Do this via context() instead?

Current method of doing it would be to read string, determine the byte size using the context and use that as the byte offset.

@joachimmetz joachimmetz self-assigned this Jul 11, 2018
@joachimmetz joachimmetz changed the title Add support to define remainder of data Consider adding support to define remainder of data Jul 11, 2018
@joachimmetz joachimmetz changed the title Consider adding support to define remainder of data Consider adding support to define remaining data size Jul 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant