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

18 lines
383 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)
2025-06-14 15:19:36 +02:00
ent := ctx.Dictionary.GetEntry([]uint64{3, 16, 5})
2025-06-12 15:12:34 +02:00
2025-06-14 15:19:36 +02:00
for path, tableEnt := range *ent.Children {
if path < 128 {
2025-06-12 15:12:34 +02:00
continue
}
2025-06-14 15:19:36 +02:00
name := decodeByteSeq(tableEnt.Children.GetValue([]uint64{16}))
table := &FmpTable{ID: path, Name: name}
tables = append(tables, table)
2025-06-12 11:44:57 +02:00
}
2025-06-12 15:12:34 +02:00
2025-06-12 11:44:57 +02:00
return tables
}