terraria-cpp2il-methodrecon
v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
ValueUtf8Converter.cs
Go to the documentation of this file.
1
using
System
;
2
3
namespace
System.Text
4
{
5
// Token: 0x02000288 RID: 648
6
internal
ref struct
ValueUtf8Converter
7
{
8
// Token: 0x0600162C RID: 5676 RVA: 0x0002EB18 File Offset: 0x0002CD18
9
public
ValueUtf8Converter
(
Span<byte>
initialBuffer
)
10
{
11
this._bytes
=
initialBuffer
;
12
}
13
14
// Token: 0x0600162D RID: 5677 RVA: 0x0002EB2C File Offset: 0x0002CD2C
15
public
Span<byte>
ConvertAndTerminateString
(
ReadOnlySpan<char>
value
)
16
{
17
Encoding
utf
=
Encoding
.
UTF8
;
18
int
length
= this.
_bytes
.
_length
;
19
this.
Dispose
();
20
if
(length == 0)
21
{
22
}
23
if
(
length
== 0)
24
{
25
}
26
long
num = 0
L
;
27
long
num2
= 0
L
;
28
this._bytes
= num;
29
this._bytes._length
= (int)
num2
;
30
Encoding
utf2
=
Encoding
.
UTF8
;
31
Span<byte>
bytes = this.
_bytes
;
32
int
length2
= this.
_bytes
.
_length
;
33
Span<byte>
bytes2
= this.
_bytes
;
34
int
length3
= this.
_bytes
.
_length
;
35
ThrowHelper
.
ThrowArgumentOutOfRangeException
();
36
return
this.
_bytes
;
37
}
38
39
// Token: 0x0600162E RID: 5678 RVA: 0x0002EBB0 File Offset: 0x0002CDB0
40
public
void
Dispose
()
41
{
42
}
43
44
// Token: 0x04000B5B RID: 2907
45
private
byte
[]
_arrayToReturnToPool
;
46
47
// Token: 0x04000B5C RID: 2908
48
private
Span<byte>
_bytes
;
49
}
50
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
System.Text.Encoding.UTF8
static Encoding UTF8
Definition
Encoding.cs:828
System.Text.Encoding
Definition
Encoding.cs:15
System.ThrowHelper.ThrowArgumentOutOfRangeException
static void ThrowArgumentOutOfRangeException()
Definition
ThrowHelper.cs:133
System.ThrowHelper
Definition
ThrowHelper.cs:11
System.Text
Definition
ASCIIEncoding.cs:7
System.ExceptionArgument.value
@ value
System.ExceptionArgument.length
@ length
System.ConsoleKey.L
@ L
System
Definition
__ComObject.cs:4
System.ReadOnlySpan
Definition
ReadOnlySpan.cs:15
System.Span._length
readonly int _length
Definition
Span.cs:240
System.Span
Definition
Span.cs:15
System.Text.ValueUtf8Converter._arrayToReturnToPool
byte[] _arrayToReturnToPool
Definition
ValueUtf8Converter.cs:45
System.Text.ValueUtf8Converter._bytes
Span< byte > _bytes
Definition
ValueUtf8Converter.cs:48
System.Text.ValueUtf8Converter.Dispose
void Dispose()
Definition
ValueUtf8Converter.cs:40
System.Text.ValueUtf8Converter.ValueUtf8Converter
ValueUtf8Converter(Span< byte > initialBuffer)
Definition
ValueUtf8Converter.cs:9
System.Text.ValueUtf8Converter.ConvertAndTerminateString
Span< byte > ConvertAndTerminateString(ReadOnlySpan< char > value)
Definition
ValueUtf8Converter.cs:15
System.Text.ValueUtf8Converter
Definition
ValueUtf8Converter.cs:7
source
mscorlib
System
Text
ValueUtf8Converter.cs
Generated by
1.10.0