Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1475,26 +1475,6 @@ _currentEncoding is UTF32Encoding ||

return _byteCount;
}

private static class NativeMethods
{
// Default values
private const int MAX_DEFAULTCHAR = 2;
private const int MAX_LEADBYTES = 12;

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
internal struct CPINFO
{
[MarshalAs(UnmanagedType.U4)]
internal int MaxCharSize;

[MarshalAs(UnmanagedType.ByValArray, SizeConst = MAX_DEFAULTCHAR)]
public byte[] DefaultChar;

[MarshalAs(UnmanagedType.ByValArray, SizeConst = MAX_LEADBYTES)]
public byte[] LeadBytes;
}
}
}

/// <summary>
Expand Down
Loading