Skip to content

Compatible with C++ spec v2? #137

@sgammon

Description

@sgammon

I'm curious if this package has yet adopted the v2 branch of capnproto upstream. Say you have a message you have created in C++, like:

// message = ... is a builder of some kind
VectorOutputStream stream;
capnp::MallocMessageBuilder builder;
builder.setRoot(message.asReader());
capnp::writeMessage(stream, builder.getSegmentsForOutput());
ArrayPtr<byte> p_bytes = stream.getArray();

And now, you take those p_bytes and transport them to Java, and read them. Is this supported? If so, is that the right way to do it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions