MCPcopy Create free account
hub / github.com/WebAssembly/wabt / WriteOpcode

Function WriteOpcode

src/binary-writer.cc:50–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50void WriteOpcode(Stream* stream, Opcode opcode) {
51 if (opcode.HasPrefix()) {
52 stream->WriteU8(opcode.GetPrefix(), "prefix");
53 WriteU32Leb128(stream, opcode.GetCode(), opcode.GetName());
54 } else {
55 stream->WriteU8(opcode.GetCode(), opcode.GetName());
56 }
57}
58
59void WriteType(Stream* stream, Type type, const char* desc) {
60 if (type.IsNonTypedRef() && !type.IsNullableNonTypedRef()) {

Callers 4

WriteLoadStoreExprMethod · 0.85
WriteExprMethod · 0.85
WriteInitExprMethod · 0.85
WriteFuncMethod · 0.85

Calls 6

HasPrefixMethod · 0.80
WriteU8Method · 0.80
GetPrefixMethod · 0.80
GetCodeMethod · 0.80
WriteU32Leb128Function · 0.70
GetNameMethod · 0.45

Tested by

no test coverage detected