static date() { int dataIndex = 0; pointer[] datas = unmanaged.GetStatic(false, 7 * sizeof(int), 12 * sizeof(int)); weekData = datas[dataIndex++].Reference; monthData = datas[dataIndex++].Reference; int *write = weekData.Int; *write = 'S' + ('u' << 8) + ('n' << 16) + (',' << 24); *++write = 'M' + ('o' << 8) + ('n' << 16) + (',' << 24); *++write = 'T' + ('u' << 8) + ('e' << 16) + (',' << 24); *++write = 'W' + ('e' << 8) + ('d' << 16) + (',' << 24); *++write = 'T' + ('h' << 8) + ('u' << 16) + (',' << 24); *++write = 'F' + ('r' << 8) + ('i' << 16) + (',' << 24); *++write = 'S' + ('a' << 8) + ('t' << 16) + (',' << 24); write = monthData.Int; *write = 'J' + ('a' << 8) + ('n' << 16) + (' ' << 24); *++write = 'F' + ('e' << 8) + ('b' << 16) + (' ' << 24); *++write = 'M' + ('a' << 8) + ('r' << 16) + (' ' << 24); *++write = 'A' + ('p' << 8) + ('r' << 16) + (' ' << 24); *++write = 'M' + ('a' << 8) + ('y' << 16) + (' ' << 24); *++write = 'J' + ('u' << 8) + ('n' << 16) + (' ' << 24); *++write = 'J' + ('u' << 8) + ('l' << 16) + (' ' << 24); *++write = 'A' + ('u' << 8) + ('g' << 16) + (' ' << 24); *++write = 'S' + ('e' << 8) + ('p' << 16) + (' ' << 24); *++write = 'O' + ('c' << 8) + ('t' << 16) + (' ' << 24); *++write = 'N' + ('o' << 8) + ('v' << 16) + (' ' << 24); *++write = 'D' + ('e' << 8) + ('c' << 16) + (' ' << 24); }
static stringExpand() { pinyins = unmanaged.GetStatic((476 - 224 + 1) * sizeof(char), true).Reference; char *pinyinData = pinyins.Char; pinyinData['ā' - 224] = 'a'; pinyinData['á' - 224] = 'a'; pinyinData['ǎ' - 224] = 'a'; pinyinData['à' - 224] = 'a'; pinyinData['ē' - 224] = 'e'; pinyinData['é' - 224] = 'e'; pinyinData['ě' - 224] = 'e'; pinyinData['è' - 224] = 'e'; pinyinData['ī' - 224] = 'i'; pinyinData['í' - 224] = 'i'; pinyinData['ǐ' - 224] = 'i'; pinyinData['ì' - 224] = 'i'; pinyinData['ō' - 224] = 'o'; pinyinData['ó' - 224] = 'o'; pinyinData['ǒ' - 224] = 'o'; pinyinData['ò' - 224] = 'o'; pinyinData['ū' - 224] = 'u'; pinyinData['ú' - 224] = 'u'; pinyinData['ǔ' - 224] = 'u'; pinyinData['ù' - 224] = 'u'; pinyinData['ǘ' - 224] = 'v'; pinyinData['ǚ' - 224] = 'v'; pinyinData['ǜ' - 224] = 'v'; }
static String() { Base64 = unmanaged.GetStatic(64, true).Reference; byte *base64 = Base64.Byte; foreach (char code in "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/") { *base64++ = (byte)code; } }
static numberExpand() { deBruijn32 = fastCSharp.number.GetDeBruijn32().Reference; }