Skip to content

Rust_strip header #63

Description

@DeviPriya-Kolla

Description:
This issue involves implementing functionality to strip the header from a TBE file in Rust, isolating it from the main data section. This capability is particularly useful when users need only the metadata information without processing the entire file, allowing for more efficient data handling and analysis.

Developer Notes:

  • Implement a function, strip_header_from_tbe, that reads a TBE file and identifies the header section, which includes the global metadata.
  • Utilize Rust data structures, such as HashMap<String, String> or a custom struct, to store the extracted metadata efficiently.
  • Use Rust’s standard I/O libraries (std::fs::File, std::io::{BufReader, Read}) to read the TBE file efficiently.

Acceptance Criteria:

  • Extract Global Metadata from TBE File
  • Exclude TBL Sections
  • Return Metadata as a Rust object, such as custom class or HashMap<String, String>
  • Handle Absence of Header
    • Return an empty object (e.g., an empty HashMap) or a clearly structured empty metadata object
    • Issue a warning message to inform the user that no header was detected in the file

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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