Class BinaryWriter
java.lang.Object
de.mirkosertic.bytecoder.core.backend.wasm.ast.BinaryWriter
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
class
class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
header()
byte[]
private static int
writeSignedLeb128
(int value, OutputStream os) private static int
writeSignedLeb128
(long value, OutputStream os) private static int
writeUnsignedLeb128
(int value, OutputStream os)
-
Field Details
-
os
-
-
Constructor Details
-
BinaryWriter
public BinaryWriter()
-
-
Method Details
-
writeUnsignedLeb128
- Throws:
IOException
-
writeSignedLeb128
- Throws:
IOException
-
writeSignedLeb128
- Throws:
IOException
-
toByteArray
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-
header
- Throws:
IOException
-
typeSection
-
importsSection
-
functionSection
-
tablesSection
-
memorySection
-
globalsSection
-
exportsSection
-
elementsSection
-
codeSection
-
tagSection
-
customSection
-