Add Padding method

develop
Michael Yang 2014-01-03 16:34:12 -05:00
rodzic 9e9a82b1e8
commit 8a1c79c6aa
2 zmienionych plików z 6 dodań i 0 usunięć

1
id3.go
Wyświetl plik

@ -28,6 +28,7 @@ type Tagger interface {
DeleteFrames(string) []Framer
AddFrame(Framer)
Bytes() []byte
Padding() uint
Version() string
}

Wyświetl plik

@ -109,6 +109,11 @@ func (t Tag) Bytes() []byte {
return append(t.Header.Bytes(), data...)
}
// The amount of padding in the tag
func (t Tag) Padding() uint {
return t.padding
}
// All frames
func (t Tag) AllFrames() []Framer {
// Most of the time each ID will only have one frame