use of io.camunda.zeebe.msgpack.spec.MsgPackWriter in project zeebe by camunda.
the class MsgPackUtil method encodeMsgPack.
private static void encodeMsgPack(final MutableDirectBuffer buffer, final Consumer<MsgPackWriter> arg) {
final MsgPackWriter writer = new MsgPackWriter();
writer.wrap(buffer, 0);
arg.accept(writer);
buffer.wrap(buffer, 0, writer.getOffset());
}
use of io.camunda.zeebe.msgpack.spec.MsgPackWriter in project zeebe by camunda-cloud.
the class MsgPackUtil method encodeMsgPack.
private static void encodeMsgPack(final MutableDirectBuffer buffer, final Consumer<MsgPackWriter> arg) {
final MsgPackWriter writer = new MsgPackWriter();
writer.wrap(buffer, 0);
arg.accept(writer);
buffer.wrap(buffer, 0, writer.getOffset());
}
use of io.camunda.zeebe.msgpack.spec.MsgPackWriter in project zeebe by zeebe-io.
the class MsgPackUtil method encodeMsgPack.
private static void encodeMsgPack(final MutableDirectBuffer buffer, final Consumer<MsgPackWriter> arg) {
final MsgPackWriter writer = new MsgPackWriter();
writer.wrap(buffer, 0);
arg.accept(writer);
buffer.wrap(buffer, 0, writer.getOffset());
}
Aggregations