Class BinaryWriter.Writer
- java.lang.Object
-
- de.mirkosertic.bytecoder.core.backend.wasm.ast.BinaryWriter.Writer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
- Direct Known Subclasses:
BinaryWriter.BlockWriter
,BinaryWriter.SectionWriter
- Enclosing class:
- BinaryWriter
public abstract class BinaryWriter.Writer extends java.lang.Object implements java.lang.AutoCloseable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
BinaryWriter.Writer.DebugInfo
-
Field Summary
Fields Modifier and Type Field Description protected java.io.ByteArrayOutputStream
bos
protected java.io.OutputStream
flushTarget
protected int
offset
-
Constructor Summary
Constructors Modifier Constructor Description protected
Writer(java.io.OutputStream flushTarget, int offset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BinaryWriter.BlockWriter
blockWriter()
void
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
writeUTF8(java.lang.String value)
-
-
-
Method Detail
-
blockWriter
public BinaryWriter.BlockWriter blockWriter()
-
writeByte
public void writeByte(byte value)
-
writeUnsignedLeb128
public void writeUnsignedLeb128(int value) throws java.io.IOException
- Throws:
java.io.IOException
-
writeSignedLeb128
public void writeSignedLeb128(int value) throws java.io.IOException
- Throws:
java.io.IOException
-
writeSignedLeb128
public void writeSignedLeb128(long value) throws java.io.IOException
- Throws:
java.io.IOException
-
writeUTF8
public void writeUTF8(java.lang.String value) throws java.io.IOException
- Throws:
java.io.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)
-
-