kopia lustrzana https://github.com/jcs/id3-go
Add Padding method
rodzic
9e9a82b1e8
commit
8a1c79c6aa
1
id3.go
1
id3.go
|
@ -28,6 +28,7 @@ type Tagger interface {
|
|||
DeleteFrames(string) []Framer
|
||||
AddFrame(Framer)
|
||||
Bytes() []byte
|
||||
Padding() uint
|
||||
Version() string
|
||||
}
|
||||
|
||||
|
|
5
id3v2.go
5
id3v2.go
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue