1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
4 ////////////////////////////////////////////////////////////////////////////
10 // Purpose: This module implements the methods of the COMNlsInfo
11 // class. These methods are the helper functions for the
14 // Date: August 12, 1998
16 ////////////////////////////////////////////////////////////////////////////
25 #include "interoputil.h"
38 * This function returns a pointer to this table that we use in System.Globalization.EncodingTable.
39 * No error checking of any sort is performed. Range checking is entirely the responsibility of the managed
42 FCIMPL0(EncodingDataItem *, COMNlsInfo::nativeGetEncodingTableDataPointer)
44 LIMITED_METHOD_CONTRACT;
45 STATIC_CONTRACT_SO_TOLERANT;
47 return (EncodingDataItem *)EncodingDataTable;
52 * This function returns a pointer to this table that we use in System.Globalization.EncodingTable.
53 * No error checking of any sort is performed. Range checking is entirely the responsibility of the managed
56 FCIMPL0(CodePageDataItem *, COMNlsInfo::nativeGetCodePageTableDataPointer)
58 LIMITED_METHOD_CONTRACT;
60 STATIC_CONTRACT_SO_TOLERANT;
62 return ((CodePageDataItem*) CodePageDataTable);
67 * This function returns the number of items in EncodingDataTable.
69 FCIMPL0(INT32, COMNlsInfo::nativeGetNumEncodingItems)
71 LIMITED_METHOD_CONTRACT;
72 STATIC_CONTRACT_SO_TOLERANT;
74 return (m_nEncodingDataTableItems);