1
1
mirror of https://github.com/wader/fq.git synced 2024-11-25 23:13:19 +03:00
fq/doc/presentations/bts2022/mp3.go
2024-04-21 09:50:02 +02:00

26 lines
419 B
Go

//go:build exclude
package bts2022
func decode(d *decode.D) any {
d.FieldArray("headers", func(d *decode.D) {
for !d.End() {
d.TryFieldFormat("header", headerGroup)
}
})
d.FieldArray("frames", func(d *decode.D) {
for !d.End() {
d.TryFieldFormat("frame", mp3Group)
}
})
d.FieldArray("footers", func(d *decode.D) {
for !d.End() {
d.TryFieldFormat("footer", footerGroup)
}
})
return nil
}