Skip to content

Clarify how to read/write tags manually? #19

@leo60228

Description

@leo60228

The docs aren't very clear on how to manually read and write tags (for example, writing to a different file than originally read from, or reading/writing over the network). Based on the code, I think that something along these lines is correct:

let mut tag = Tag::read_from(&mut reader)?;
update(&mut tag);
tag.write_to(&mut writer)?;
std::io::copy(&mut reader, &mut writer)?;

However, it'd be nice if there was an example for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions