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

Table parsing (WIP)

This commit is contained in:
2025-06-12 11:44:57 +02:00
parent 43523c458a
commit 8562e1147b
6 changed files with 68 additions and 17 deletions

12
fmp/fmp_table.go Normal file
View File

@ -0,0 +1,12 @@
package fmp
func (ctx *FmpFile) Tables() []*FmpTable {
tables := make([]*FmpTable, 0)
metaDict := ctx.Dictionary.get([]uint16{4, 1, 7})
for _, meta := range *metaDict.Children {
name := decodeByteSeq(meta.Children.get([]uint16{16}).Value)
table := &FmpTable{Name: name}
tables = append(tables, table)
}
return tables
}