1
0
mirror of https://github.com/garraflavatra/go-fmp.git synced 2025-06-28 04:25:11 +00:00
Files
go-fmp/fmp/fmp_table.go

16 lines
372 B
Go
Raw Normal View History

2025-06-12 11:44:57 +02:00
package fmp
func (ctx *FmpFile) Tables() []*FmpTable {
tables := make([]*FmpTable, 0)
metaDict := ctx.Dictionary.get([]uint64{4, 1, 7})
2025-06-12 11:54:24 +02:00
if metaDict == nil {
return tables
}
2025-06-12 11:44:57 +02:00
for _, meta := range *metaDict.Children {
name := decodeByteSeq(meta.Children.get([]uint64{16}).Value)
2025-06-12 11:44:57 +02:00
table := &FmpTable{Name: name}
tables = append(tables, table)
}
return tables
}