Class BinaryWriter.Writer
java.lang.Object
de.mirkosertic.bytecoder.core.backend.wasm.ast.BinaryWriter.Writer
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
BinaryWriter.BlockWriter
,BinaryWriter.SectionWriter
- Enclosing class:
BinaryWriter
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ByteArrayOutputStream
protected final OutputStream
protected final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
writeByte
(byte value) void
writeDouble64
(double value) void
writeFloat32
(float value) void
writeInteger32
(int value) void
writeLong64
(long value) void
writeSignedLeb128
(int value) void
writeSignedLeb128
(long value) void
writeUnsignedLeb128
(int value) void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.AutoCloseable
close
-
Field Details
-
flushTarget
-
bos
-
offset
protected final int offset
-
-
Constructor Details
-
Writer
-
-
Method Details
-
blockWriter
-
writeByte
public void writeByte(byte value) -
writeUnsignedLeb128
- Throws:
IOException
-
writeSignedLeb128
- Throws:
IOException
-
writeSignedLeb128
- Throws:
IOException
-
writeUTF8
- Throws:
IOException
-
writeFloat32
public void writeFloat32(float value) -
writeDouble64
public void writeDouble64(double value) -
writeInteger32
public void writeInteger32(int value) -
writeLong64
public void writeLong64(long value)
-