1
1
mirror of https://github.com/wader/fq.git synced 2024-11-30 09:58:13 +03:00
fq/doc/presentations/bts2022/mp3.go
2022-07-19 18:33:50 +02:00

22 lines
389 B
Go

func decode(d *decode.D, _ any) 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
}