struct PAGE {
const unsigned int maxlen;
unsigned int curlen;
const char* mime;
const char* name;
unsigned char* bytes;
};
unsigned char file00[] = {65, 66, 67, 68, 59, 70, 71, 72};
PAGE page00 = { 8, 8, "text/html", "index.html", file00 };
unsigned char file01[] = {65, 66, 67, 68, 59, 70, 13, 72};
PAGE page01 = { 8, 8, "text/html", "folder/page.html", file01 };
unsigned char file02[] = {12, 0, 27, 254, 59, 70, 71, 72, 13, 28, 11, 12};
PAGE page02 = { 12, 12, "image/gif", "picture.gif", file02 };
unsigned char file03[] = {12, 0, 27, 254, 59, 70, 71, 72, 13, 28, 11, 12};
PAGE page03 = { 12, 12, "application/pdf", "doc.pdf", file03 };
struct PAGE* const website[] =
{
&page00
, &page01
, &page02
, &page03
};