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
|
|
|
|
}
|