Class BinaryWriter
java.lang.Object
de.mirkosertic.bytecoder.core.backend.wasm.ast.BinaryWriter
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclassclass -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidheader()byte[]private static intwriteSignedLeb128(int value, OutputStream os) private static intwriteSignedLeb128(long value, OutputStream os) private static intwriteUnsignedLeb128(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:
closein interfaceAutoCloseable- Throws:
IOException
-
header
- Throws:
IOException
-
typeSection
-
importsSection
-
functionSection
-
tablesSection
-
memorySection
-
globalsSection
-
exportsSection
-
elementsSection
-
codeSection
-
tagSection
-
customSection
-