NXEngine v1.0.0.6
[NXEngine.git] / siflib / sectStringArray.h
blobf806e47a059ded73c82be5a07d92f3f3edc90bed
2 #ifndef _SECT_STRINGARRAY_H
3 #define _SECT_STRINGARRAY_H
5 class StringList;
6 class DString;
7 class DBuffer;
9 // the SectStringArray handler decodes sif sections which consist of an array
10 // of pascal strings. This includes SIF_SECTION_SHEETS and SIF_SECTION_DIRECTORY.
12 class SIFStringArraySect
14 public:
15 static bool Decode(const uint8_t *data, int datalen, StringList *out);
16 static uint8_t *Encode(StringList *strings, int *datalen_out);
18 static void ReadPascalString(const uint8_t **data, const uint8_t *data_end, DString *out);
19 static void WritePascalString(const char *str, DBuffer *out);
23 #endif