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

Function ReadNullTerminatedString

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

Source from the content-addressed store, hash-verified

172 return value;
173 }
174 public string ReadNullTerminatedString()
175 {
176 StringBuilder sr = new StringBuilder();
177
178 while (true)
179 {
180 byte symbol = ReadByte();
181
182 if (symbol == 0)
183 return sr.ToString();
184
185 sr.Append((char)symbol);
186 }
187 }
188
189 public String ReadWideNullTerminatedString()
190 {

Callers

nothing calls this directly

Calls 3

ReadByteFunction · 0.85
AppendMethod · 0.80
ToStringMethod · 0.45

Tested by

no test coverage detected