protected static IList <IList <byte> > GetUncompressedSectionBytes(IList <IList <string> > strings, byte terminator, GenericCharMap charmap) { IList <IList <byte> > result = new List <IList <byte> >(strings.Count); foreach (IList <string> section in strings) { List <byte> bytes = new List <byte>(); section.ForEach(s => bytes.AddRange(charmap.StringToByteArray(s, terminator))); result.Add(bytes.AsReadOnly()); } return(result.AsReadOnly()); }
protected IList <IList <byte> > GetUncompressedSectionBytes(IList <IList <string> > strings, byte terminator, GenericCharMap charmap) { IList <IList <byte> > result = new List <IList <byte> >(strings.Count); int sectionIndex = 0; foreach (IList <string> section in strings) { List <byte> bytes = new List <byte>(); GenericCharMap processCharmap = GetSectionCharmap(sectionIndex, charmap); section.ForEach(s => bytes.AddRange(processCharmap.StringToByteArray(s, terminator))); result.Add(bytes.AsReadOnly()); sectionIndex++; } return(result.AsReadOnly()); }