Package io.camunda.zeebe.msgpack
Class UnpackedObject
java.lang.Object
io.camunda.zeebe.msgpack.value.BaseValue
io.camunda.zeebe.msgpack.value.ObjectValue
io.camunda.zeebe.msgpack.UnpackedObject
- All Implemented Interfaces:
Recyclable,BufferReader,BufferWriter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.camunda.zeebe.msgpack.value.ObjectValue
declareProperty, equals, getEncodedLength, hashCode, isEmpty, read, reset, write, writeJSONMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.camunda.zeebe.util.buffer.BufferReader
copyFromMethods inherited from interface io.camunda.zeebe.msgpack.Recyclable
reset
-
Field Details
-
reader
-
writer
-
-
Constructor Details
-
UnpackedObject
public UnpackedObject(int expectedDeclaredProperties) Creates a new UnpackedObject- Parameters:
expectedDeclaredProperties- a size hint for the number of declared properties. Providing the correct number helps to avoid allocations and memory copies.
-
-
Method Details
-
wrap
public void wrap(org.agrona.DirectBuffer buff) -
wrap
public void wrap(org.agrona.DirectBuffer buff, int offset, int length) - Specified by:
wrapin interfaceBufferReader
-
getLength
public int getLength()- Specified by:
getLengthin interfaceBufferWriter
-
write
public void write(org.agrona.MutableDirectBuffer buffer, int offset) - Specified by:
writein interfaceBufferWriter
-