Class BinaryWire.Writer
java.lang.Object
io.fluxzero.common.api.internal.BinaryWire.Writer
- Enclosing class:
BinaryWire
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]byte[]voidwriteBoolean(boolean value) voidwriteByte(int value) voidwriteBytes(byte[] value) voidwriteBytes(byte[] value, int offset, int length) voidwriteEnvelope(SerializedMessage message) voidwriteInt(int value) voidwriteLong(long value) voidwriteLongs(long[] values) voidwriteNullableInt(Integer value) voidwriteNullableLong(Long value) voidwriteRaw(byte[] value) voidwriteRaw(byte[] value, int offset, int length) voidwriteString(String value)
-
Constructor Details
-
Writer
public Writer(int initialSize, int maximumSize)
-
-
Method Details
-
writeByte
public void writeByte(int value) -
writeBoolean
public void writeBoolean(boolean value) -
writeInt
public void writeInt(int value) -
writeLong
public void writeLong(long value) -
writeNullableInt
-
writeNullableLong
-
writeString
-
writeBytes
public void writeBytes(byte[] value) -
writeBytes
public void writeBytes(byte[] value, int offset, int length) -
writeRaw
public void writeRaw(byte[] value) -
writeRaw
public void writeRaw(byte[] value, int offset, int length) -
writeLongs
public void writeLongs(long[] values) -
writeEnvelope
-
toByteArray
public byte[] toByteArray() -
toExactByteArray
public byte[] toExactByteArray()
-