public override object Read(object target, Package package, System.IO.BinaryReader reader, long end)
{
int offset = 0, total = reader.ReadInt32();
List<Statement> list = null;
while (offset < total) {
if (list == null)
list = new List<Statement>();
var statement = Statement.Load(package, reader, ref offset, end);
list.Add(statement);
}
/*List<string> result = new List<string>(list != null ? list.Count : 0);
if(list != null) {
foreach(var item in list)
result.Add(item.UnpackedCodeOffset + ": " + item.ToString());
}*/
if (offset != total)
throw new Exception("Didn't read exactly right");
return list;
}