@@ -9,7 +9,7 @@ namespace Python.Runtime
99 /// Abstract class defining boiler plate methods that
1010 /// Custom Marshalers will use.
1111 /// </summary>
12- public abstract class MarshalerBase : ICustomMarshaler
12+ internal abstract class MarshalerBase : ICustomMarshaler
1313 {
1414 public object MarshalNativeToManaged ( IntPtr pNativeData )
1515 {
@@ -39,9 +39,9 @@ public int GetNativeDataSize()
3939 /// Custom Marshaler to deal with Managed String to Native
4040 /// conversion differences on UCS2/UCS4.
4141 /// </summary>
42- public class StrMarshaler : MarshalerBase
42+ internal class UcsMarshaler : MarshalerBase
4343 {
44- private static readonly MarshalerBase Instance = new StrMarshaler ( ) ;
44+ private static readonly MarshalerBase Instance = new UcsMarshaler ( ) ;
4545 private static readonly Encoding PyEncoding = Runtime . PyEncoding ;
4646
4747 public override IntPtr MarshalManagedToNative ( object managedObj )
@@ -106,7 +106,7 @@ public static int GetUnicodeByteLength(IntPtr p)
106106 /// Custom Marshaler to deal with Managed String Arrays to Native
107107 /// conversion differences on UCS2/UCS4.
108108 /// </summary>
109- public class StrArrayMarshaler : MarshalerBase
109+ internal class StrArrayMarshaler : MarshalerBase
110110 {
111111 private static readonly MarshalerBase Instance = new StrArrayMarshaler ( ) ;
112112 private static readonly Encoding PyEncoding = Runtime . PyEncoding ;
@@ -161,7 +161,7 @@ public static ICustomMarshaler GetInstance(string cookie)
161161 /// If instead we used `MarshalAs(UnmanagedType.LPWStr)` the output to
162162 /// `foo` would be `f\x00o\x00o\x00`.
163163 /// </remarks>
164- public class Utf8Marshaler : MarshalerBase
164+ internal class Utf8Marshaler : MarshalerBase
165165 {
166166 private static readonly MarshalerBase Instance = new Utf8Marshaler ( ) ;
167167 private static readonly Encoding PyEncoding = Encoding . UTF8 ;
0 commit comments