// pvfrawex 导出 PVF 成员的原始字节(只读,用于确认真实分隔符/编码)。 package main import ( "flag" "fmt" "os" platformpvf "longheng.io/server/internal/platform/pvf" ) func main() { pvfPath := flag.String("pvf", "", "input PVF") memberPath := flag.String("file", "", "archive member") outPath := flag.String("out", "", "output raw file") flag.Parse() if *pvfPath == "" || *memberPath == "" || *outPath == "" { fmt.Fprintln(os.Stderr, "-pvf, -file, -out are required") os.Exit(2) } archive, err := platformpvf.Open(*pvfPath) if err != nil { panic(err) } raw, err := archive.ReadRaw(*memberPath) if err != nil { panic(err) } if err := os.WriteFile(*outPath, raw, 0o644); err != nil { panic(err) } fmt.Printf("member=%s raw_bytes=%d out=%s\n", *memberPath, len(raw), *outPath) }