Skip to content

Fail gracefully on populating RegisterData and MemoryRegions from iterators #33

@hdoordt

Description

@hdoordt

Currently, RegisterData and MemoryRegion panic in their FromIterator::from_iter implementations if:

  • the first item does not match the expected identifier
  • the iterator does not contain enough items

This is undesirable when handling possibly corrupted data. I propose adding a non-panicking way to build RegisterData and MemoryRegion objects from byte iterators

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions