| 72 | } |
| 73 | |
| 74 | uint32_t ComputeLimitsFlags(const Limits* limits) { |
| 75 | uint32_t flags = limits->has_max ? WABT_BINARY_LIMITS_HAS_MAX_FLAG : 0; |
| 76 | flags |= limits->is_shared ? WABT_BINARY_LIMITS_IS_SHARED_FLAG : 0; |
| 77 | flags |= limits->is_64 ? WABT_BINARY_LIMITS_IS_64_FLAG : 0; |
| 78 | return flags; |
| 79 | } |
| 80 | |
| 81 | void WriteLimitsData(Stream* stream, const Limits* limits) { |
| 82 | if (limits->is_64) { |
no outgoing calls
no test coverage detected