Ejemplo n.º 1
0
 //Initialize the class by getting a pointer to the table and setting up the hash
 //tables.
 static unsafe EncodingTable() {
     lock (typeof(EncodingTable)) {
         lastEncodingItem = GetNumEncodingItems() - 1;
         encodingDataPtr = GetEncodingData();
         codePageDataPtr = GetCodePageData();
     }
     hashByName = new Hashtable();
     hashByCodePage = new Hashtable();
 }
Ejemplo n.º 2
0
 //Initialize the class by getting a pointer to the table and setting up the hash
 //tables.
 static unsafe EncodingTable()
 {
     lock (typeof(EncodingTable)) {
         lastEncodingItem = GetNumEncodingItems() - 1;
         encodingDataPtr  = GetEncodingData();
         codePageDataPtr  = GetCodePageData();
     }
     hashByName     = new Hashtable();
     hashByCodePage = new Hashtable();
 }