MCPcopy Create free account
hub / github.com/AlSch092/UltimateAntiCheat / ReadWideNullTerminatedString

Function ReadWideNullTerminatedString

Server/Network/PacketReader.cs:189–205  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

187 }
188
189 public String ReadWideNullTerminatedString()
190 {
191 StringBuilder sr = new StringBuilder();
192
193 while (true)
194 {
195 short symbol = ReadShort();
196
197 if (symbol == 0)
198 {
199
200 return sr.ToString();
201 }
202
203 sr.Append((char)symbol);
204 }
205 }
206
207 public string ReadZeroTerminatedString()
208 {

Callers

nothing calls this directly

Calls 2

AppendMethod · 0.80
ToStringMethod · 0.45

Tested by

no test coverage detected