void ParseTableSection(BinaryReader reader) { var count = Convert.ToInt32(Parser.ParseLEBSigned(reader, 32)); if (count != 1) { throw new Exception("At most one table allowed in this version of webassembly"); } var elementType = Parser.ParseLEBUnsigned(reader, 7); var limit = new WebassemblyLimit(reader); this.table = new WebassemblyTable(elementType, limit); Console.WriteLine("Parsed table section. Limit is {0} {1}", limit.min, limit.max); }
public WebassemblyTable(ulong elementType, WebassemblyLimit limit) { this.limit = limit; this.elementType = elementType; }
public WebassemblyMemory(WebassemblyLimit limit) { this.limit = limit; }