Search in sources :

Example 1 with MsgPackWriter

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());
}
Also used : MsgPackWriter(io.camunda.zeebe.msgpack.spec.MsgPackWriter)

Example 2 with MsgPackWriter

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());
}
Also used : MsgPackWriter(io.camunda.zeebe.msgpack.spec.MsgPackWriter)

Example 3 with MsgPackWriter

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());
}
Also used : MsgPackWriter(io.camunda.zeebe.msgpack.spec.MsgPackWriter)

Aggregations

MsgPackWriter (io.camunda.zeebe.msgpack.spec.MsgPackWriter)3