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
BsonBinaryWriter.cs
Go to the documentation of this file.
1using System;
2using System.IO;
4using System.Text;
7
9{
10 // Token: 0x0200011F RID: 287
11 [Preserve]
12 internal class BsonBinaryWriter
13 {
14 // Token: 0x1700022C RID: 556
15 // (get) Token: 0x06000B33 RID: 2867 RVA: 0x0001AF18 File Offset: 0x00019118
16 // (set) Token: 0x06000B34 RID: 2868 RVA: 0x0001AF2C File Offset: 0x0001912C
18 {
20 get
21 {
23 }
25 set
26 {
28 }
29 }
30
31 // Token: 0x06000B35 RID: 2869 RVA: 0x0001AF40 File Offset: 0x00019140
33 {
35 this._writer = writer;
36 }
37
38 // Token: 0x06000B36 RID: 2870 RVA: 0x0001AF64 File Offset: 0x00019164
39 public void Flush()
40 {
41 BinaryWriter writer = this._writer;
42 }
43
44 // Token: 0x06000B37 RID: 2871 RVA: 0x0001AF78 File Offset: 0x00019178
45 public void Close()
46 {
47 BinaryWriter writer = this._writer;
48 }
49
50 // Token: 0x06000B38 RID: 2872 RVA: 0x0001AF8C File Offset: 0x0001918C
51 public void WriteToken(BsonToken t)
52 {
53 int num = this.CalculateSize(t);
54 this.WriteTokenInternal(t);
55 }
56
57 // Token: 0x06000B39 RID: 2873 RVA: 0x0001AFA8 File Offset: 0x000191A8
59 {
60 }
61
62 // Token: 0x06000B3A RID: 2874 RVA: 0x0001B0E4 File Offset: 0x000192E4
63 private void WriteString(string s, int byteCount, int? calculatedlengthPrefix)
64 {
65 BinaryWriter writer = this._writer;
68 }
69
70 // Token: 0x06000B3B RID: 2875 RVA: 0x0001B108 File Offset: 0x00019308
71 public void WriteUtf8Bytes(string s, int byteCount)
72 {
73 if (s != null)
74 {
75 if (this._largeByteBuffer == null)
76 {
77 }
78 BinaryWriter writer = this._writer;
79 return;
80 }
81 }
82
83 // Token: 0x06000B3C RID: 2876 RVA: 0x0000212A File Offset: 0x0000032A
85 {
86 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
87 }
88
89 // Token: 0x06000B3D RID: 2877 RVA: 0x0000212A File Offset: 0x0000032A
90 private int CalculateSizeWithLength(int stringByteCount, bool includeSize)
91 {
92 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
93 }
94
95 // Token: 0x06000B3E RID: 2878 RVA: 0x0001B148 File Offset: 0x00019348
96 private int CalculateSize(BsonToken t)
97 {
98 int num;
99 return num;
100 }
101
102 // Token: 0x06000B3F RID: 2879 RVA: 0x0001B1E8 File Offset: 0x000193E8
103 // Note: this type is marked as 'beforefieldinit'.
105 {
106 }
107
108 // Token: 0x0400042C RID: 1068
109 private static readonly Encoding Encoding;
110
111 // Token: 0x0400042D RID: 1069
113
114 // Token: 0x0400042E RID: 1070
115 private byte[] _largeByteBuffer;
116
117 // Token: 0x0400042F RID: 1071
119 private DateTimeKind <DateTimeKindHandling>k__BackingField;
120 }
121}
class f__AnonymousType0<< Count > j__TPar
int CalculateSize(int stringByteCount)
void WriteUtf8Bytes(string s, int byteCount)
DateTimeKind< DateTimeKindHandling > k__BackingField
void WriteString(string s, int byteCount, int? calculatedlengthPrefix)
int CalculateSizeWithLength(int stringByteCount, bool includeSize)