We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
UniqueFileIdentifierFrame::decode_bytes
1 parent 11a6028 commit e9cfd77Copy full SHA for e9cfd77
src/id3/v2/items/identifier.rs
@@ -14,7 +14,7 @@ pub struct UniqueFileIdentifierFrame {
14
}
15
16
impl UniqueFileIdentifierFrame {
17
- /// Encode the frame contents as bytes.
+ /// Encode the frame contents as bytes
18
pub fn as_bytes(&self) -> Vec<u8> {
19
let Self { owner, identifier } = self;
20
@@ -25,7 +25,11 @@ impl UniqueFileIdentifierFrame {
25
content
26
27
28
- /// Decode the frame contents from bytes.
+ /// Decode the frame contents from bytes
29
+ ///
30
+ /// # Errors
31
32
+ /// Owner is missing or improperly encoded
33
pub fn decode_bytes(input: &mut &[u8]) -> Result<Option<Self>> {
34
if input.is_empty() {
35
return Ok(None);
0 commit comments