diff options
author | tomsmeding <tom.smeding@gmail.com> | 2020-01-12 21:08:12 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2020-01-12 21:08:12 +0100 |
commit | 771ff47545cea2b3e9a12aceb305ffcb53aa40b6 (patch) | |
tree | 008ba3a5512451be9293ac64a0250a87b99b0c53 /src/util.rs | |
parent | 5e39d6876b806604090b892369cba9892c7dac25 (diff) |
Correctly write tags
It's now able to fix fake-utf8 v2.3 tags generated with the id3v2 tool!
Diffstat (limited to 'src/util.rs')
-rw-r--r-- | src/util.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/util.rs b/src/util.rs deleted file mode 100644 index b17e304..0000000 --- a/src/util.rs +++ /dev/null @@ -1,7 +0,0 @@ -pub fn read_big_endian(bytes: &[u8], bits: usize) -> usize { - bytes - .iter() - .enumerate() - .map(|(i, &b)| (b as usize) << (bits * (bytes.len() - 1 - i))) - .sum() -} |