Package io.camunda.zeebe.msgpack.spec
Class MsgPackToken
java.lang.Object
io.camunda.zeebe.msgpack.spec.MsgPackToken
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandoublelongwhen using this method, keep the value's format in mind; values of negative fixnum (signed) and unsigned integer can return the same long value while representing different numbersintgetSize()intgetType()org.agrona.DirectBuffervoidsetArrayHeader(int size) voidsetMapHeader(int size) voidsetTotalLength(int totalLength) voidsetType(MsgPackType type) voidsetValue(boolean value) voidsetValue(double value) voidsetValue(long value) voidsetValue(org.agrona.DirectBuffer buffer, int offset, int length)
-
Field Details
-
NIL
-
-
Constructor Details
-
MsgPackToken
public MsgPackToken()
-
-
Method Details
-
getTotalLength
public int getTotalLength() -
setTotalLength
public void setTotalLength(int totalLength) -
getSize
public int getSize() -
getType
-
setType
-
getValueBuffer
public org.agrona.DirectBuffer getValueBuffer() -
setValue
public void setValue(org.agrona.DirectBuffer buffer, int offset, int length) -
setValue
public void setValue(double value) -
setValue
public void setValue(long value) -
setValue
public void setValue(boolean value) -
setMapHeader
public void setMapHeader(int size) -
setArrayHeader
public void setArrayHeader(int size) -
getBooleanValue
public boolean getBooleanValue() -
getIntegerValue
public long getIntegerValue()when using this method, keep the value's format in mind; values of negative fixnum (signed) and unsigned integer can return the same long value while representing different numbers -
getFloatValue
public double getFloatValue()
-