Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
InternalDecoderBestFitFallback.cs
Go to the documentation of this file.
1
using
System.Diagnostics.CodeAnalysis
;
2
3
namespace
System.Text
;
4
5
internal
sealed
class
InternalDecoderBestFitFallback
:
DecoderFallback
6
{
7
internal
BaseCodePageEncoding
encoding
;
8
9
internal
char
[]
arrayBestFit
;
10
11
internal
char
cReplacement
=
'?'
;
12
13
public
override
int
MaxCharCount
=> 1;
14
15
internal
InternalDecoderBestFitFallback
(
BaseCodePageEncoding
_encoding)
16
{
17
encoding
= _encoding;
18
}
19
20
public
override
DecoderFallbackBuffer
CreateFallbackBuffer
()
21
{
22
return
new
InternalDecoderBestFitFallbackBuffer
(
this
);
23
}
24
25
public
override
bool
Equals
([NotNullWhen(
true
)]
object
value
)
26
{
27
if
(
value
is
InternalDecoderBestFitFallback
internalDecoderBestFitFallback)
28
{
29
return
encoding.CodePage == internalDecoderBestFitFallback.encoding.CodePage;
30
}
31
return
false
;
32
}
33
34
public
override
int
GetHashCode
()
35
{
36
return
encoding
.
CodePage
;
37
}
38
}
System.Text.BaseCodePageEncoding
Definition
BaseCodePageEncoding.cs:11
System.Text.DecoderFallbackBuffer
Definition
DecoderFallbackBuffer.cs:6
System.Text.DecoderFallback
Definition
DecoderFallback.cs:4
System.Text.Encoding.CodePage
virtual int CodePage
Definition
Encoding.cs:515
System.Text.InternalDecoderBestFitFallbackBuffer
Definition
InternalDecoderBestFitFallbackBuffer.cs:6
System.Text.InternalDecoderBestFitFallback.CreateFallbackBuffer
override DecoderFallbackBuffer CreateFallbackBuffer()
Definition
InternalDecoderBestFitFallback.cs:20
System.Text.InternalDecoderBestFitFallback.GetHashCode
override int GetHashCode()
Definition
InternalDecoderBestFitFallback.cs:34
System.Text.InternalDecoderBestFitFallback.Equals
override bool Equals([NotNullWhen(true)] object value)
Definition
InternalDecoderBestFitFallback.cs:25
System.Text.InternalDecoderBestFitFallback.MaxCharCount
override int MaxCharCount
Definition
InternalDecoderBestFitFallback.cs:13
System.Text.InternalDecoderBestFitFallback.arrayBestFit
char[] arrayBestFit
Definition
InternalDecoderBestFitFallback.cs:9
System.Text.InternalDecoderBestFitFallback.InternalDecoderBestFitFallback
InternalDecoderBestFitFallback(BaseCodePageEncoding _encoding)
Definition
InternalDecoderBestFitFallback.cs:15
System.Text.InternalDecoderBestFitFallback.encoding
BaseCodePageEncoding encoding
Definition
InternalDecoderBestFitFallback.cs:7
System.Text.InternalDecoderBestFitFallback.cReplacement
char cReplacement
Definition
InternalDecoderBestFitFallback.cs:11
System.Text.InternalDecoderBestFitFallback
Definition
InternalDecoderBestFitFallback.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
InternalDecoderBestFitFallback.cs
Generated by
1.10.0