| 1231 | } |
| 1232 | |
| 1233 | void BinaryWriter::WriteTable(const Table* table) { |
| 1234 | if (!table->init_expr.empty()) { |
| 1235 | // BinaryReader::ReadTableSection provides information about these values. |
| 1236 | WriteType(stream_, Type::Void, "initialized table prefix"); |
| 1237 | stream_->WriteU8(0x0, "initialized table prefix"); |
| 1238 | } |
| 1239 | WriteType(stream_, table->elem_type); |
| 1240 | WriteLimitsFlags(stream_, ComputeLimitsFlags(&table->elem_limits)); |
| 1241 | WriteLimitsData(stream_, &table->elem_limits); |
| 1242 | |
| 1243 | if (!table->init_expr.empty()) { |
| 1244 | WriteInitExpr(table->init_expr); |
| 1245 | } |
| 1246 | } |
| 1247 | |
| 1248 | void BinaryWriter::WriteMemory(const Memory* memory) { |
| 1249 | uint32_t flags = ComputeLimitsFlags(&memory->page_limits); |
nothing calls this directly
no test coverage detected