MCPcopy Create free account
hub / github.com/Selectively11/CloudRedirect / ReadStringTable

Method ReadStringTable

ui/Services/AppInfoParser.cs:248–260  ·  view source on GitHub ↗
(Stream fs, long offset)

Source from the content-addressed store, hash-verified

246 }
247
248 private static List<string> ReadStringTable(Stream fs, long offset)
249 {
250 var table = new List<string>();
251 fs.Seek(offset, SeekOrigin.Begin);
252 using var reader = new BinaryReader(fs, Encoding.UTF8, leaveOpen: true);
253
254 uint count = reader.ReadUInt32();
255 for (uint i = 0; i < count; i++)
256 {
257 table.Add(ReadCString(reader));
258 }
259 return table;
260 }
261
262 private static string ReadCString(BinaryReader reader)
263 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected