#if !V8_ENABLE_WEBASSEMBLY
#error This header should only be included if WebAssembly is enabled.
#endif
#ifndef V8_WASM_STRING_BUILDER_H_
#define V8_WASM_STRING_BUILDER_H_
#include <cstring>
#include <string>
#include <vector>
#include "src/common/globals.h"
namespace v8 {
namespace internal {
namespace wasm {
class StringBuilder { … };
inline StringBuilder& operator<<(StringBuilder& sb, const char* str) { … }
inline StringBuilder& operator<<(StringBuilder& sb, char c) { … }
inline StringBuilder& operator<<(StringBuilder& sb, const std::string& s) { … }
inline StringBuilder& operator<<(StringBuilder& sb, uint32_t n) { … }
inline StringBuilder& operator<<(StringBuilder& sb, int value) { … }
}
}
}
#endif