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 ByteArrayOutputStreamprotected final OutputStreamprotected final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidwriteByte(byte value) voidwriteDouble64(double value) voidwriteFloat32(float value) voidwriteInteger32(int value) voidwriteLong64(long value) voidwriteSignedLeb128(int value) voidwriteSignedLeb128(long value) voidwriteUnsignedLeb128(int value) voidMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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)
-