コード例 #1
0
ファイル: encodingtable.cs プロジェクト: ArildF/masters
 //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();
 }
コード例 #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();
 }