Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
InternalEncoderBestFitFallback.cs
Go to the documentation of this file.
1
using
System.Diagnostics.CodeAnalysis
;
2
3
namespace
System.Text
;
4
5
internal
sealed
class
InternalEncoderBestFitFallback
:
EncoderFallback
6
{
7
internal
BaseCodePageEncoding
encoding
;
8
9
internal
char
[]
arrayBestFit
;
10
11
public
override
int
MaxCharCount
=> 1;
12
13
internal
InternalEncoderBestFitFallback
(
BaseCodePageEncoding
_encoding)
14
{
15
encoding
= _encoding;
16
}
17
18
public
override
EncoderFallbackBuffer
CreateFallbackBuffer
()
19
{
20
return
new
InternalEncoderBestFitFallbackBuffer
(
this
);
21
}
22
23
public
override
bool
Equals
([NotNullWhen(
true
)]
object
value
)
24
{
25
if
(
value
is
InternalEncoderBestFitFallback
internalEncoderBestFitFallback)
26
{
27
return
encoding.CodePage == internalEncoderBestFitFallback.encoding.CodePage;
28
}
29
return
false
;
30
}
31
32
public
override
int
GetHashCode
()
33
{
34
return
encoding
.
CodePage
;
35
}
36
}
System.Text.BaseCodePageEncoding
Definition
BaseCodePageEncoding.cs:11
System.Text.EncoderFallbackBuffer
Definition
EncoderFallbackBuffer.cs:7
System.Text.EncoderFallback
Definition
EncoderFallback.cs:4
System.Text.Encoding.CodePage
virtual int CodePage
Definition
Encoding.cs:515
System.Text.InternalEncoderBestFitFallbackBuffer
Definition
InternalEncoderBestFitFallbackBuffer.cs:6
System.Text.InternalEncoderBestFitFallback.arrayBestFit
char[] arrayBestFit
Definition
InternalEncoderBestFitFallback.cs:9
System.Text.InternalEncoderBestFitFallback.MaxCharCount
override int MaxCharCount
Definition
InternalEncoderBestFitFallback.cs:11
System.Text.InternalEncoderBestFitFallback.InternalEncoderBestFitFallback
InternalEncoderBestFitFallback(BaseCodePageEncoding _encoding)
Definition
InternalEncoderBestFitFallback.cs:13
System.Text.InternalEncoderBestFitFallback.CreateFallbackBuffer
override EncoderFallbackBuffer CreateFallbackBuffer()
Definition
InternalEncoderBestFitFallback.cs:18
System.Text.InternalEncoderBestFitFallback.encoding
BaseCodePageEncoding encoding
Definition
InternalEncoderBestFitFallback.cs:7
System.Text.InternalEncoderBestFitFallback.GetHashCode
override int GetHashCode()
Definition
InternalEncoderBestFitFallback.cs:32
System.Text.InternalEncoderBestFitFallback.Equals
override bool Equals([NotNullWhen(true)] object value)
Definition
InternalEncoderBestFitFallback.cs:23
System.Text.InternalEncoderBestFitFallback
Definition
InternalEncoderBestFitFallback.cs:6
System.Diagnostics.CodeAnalysis
Definition
AllowNullAttribute.cs:1
System.Text
Definition
ConsoleEncoding.cs:1
System.ExceptionArgument.value
@ value
source
System.Text.Encoding.CodePages
System.Text
InternalEncoderBestFitFallback.cs
Generated by
1.10.0