FindCodePage() private method

private FindCodePage ( int codePage ) : bool
codePage int
return bool
 internal unsafe static int GetCodePageByteSize(int codePage)
 {
     BaseCodePageEncoding.CodePageHeader *ptr = BaseCodePageEncoding.FindCodePage(codePage);
     if (ptr == null)
     {
         return(0);
     }
     return((int)ptr->ByteCount);
 }
Ejemplo n.º 2
0
 internal static unsafe int GetCodePageByteSize(int codePage)
 {
     BaseCodePageEncoding.CodePageHeader *codePage1 = BaseCodePageEncoding.FindCodePage(codePage);
     if ((IntPtr)codePage1 == IntPtr.Zero)
     {
         return(0);
     }
     return((int)codePage1->ByteCount);
 }
Ejemplo n.º 3
0
 private unsafe void LoadCodePageTables()
 {
     BaseCodePageEncoding.CodePageHeader *codePage = BaseCodePageEncoding.FindCodePage(this.dataTableCodePage);
     if ((IntPtr)codePage == IntPtr.Zero)
     {
         throw new NotSupportedException(Environment.GetResourceString("NotSupported_NoCodepageData", (object)this.CodePage));
     }
     this.pCodePage = codePage;
     this.LoadManagedCodePage();
 }
 private unsafe void LoadCodePageTables()
 {
     BaseCodePageEncoding.CodePageHeader *ptr = BaseCodePageEncoding.FindCodePage(this.dataTableCodePage);
     if (ptr == null)
     {
         throw new NotSupportedException(Environment.GetResourceString("NotSupported_NoCodepageData", new object[]
         {
             this.CodePage
         }));
     }
     this.pCodePage = ptr;
     this.LoadManagedCodePage();
 }