Search in sources :

Example 1 with ByteBufInput

use of org.neo4j.bolt.packstream.ByteBufInput in project neo4j by neo4j.

the class MessageConditions method responseReader.

private static BoltResponseMessageReader responseReader(Neo4jPack neo4jPack, byte[] bytes) {
    ByteBufInput byteBufInput = new ByteBufInput();
    byteBufInput.start(Unpooled.wrappedBuffer(bytes));
    return new BoltResponseMessageReader(neo4jPack.newUnpacker(byteBufInput));
}
Also used : BoltResponseMessageReader(org.neo4j.bolt.messaging.BoltResponseMessageReader) ByteBufInput(org.neo4j.bolt.packstream.ByteBufInput)

Aggregations

BoltResponseMessageReader (org.neo4j.bolt.messaging.BoltResponseMessageReader)1 ByteBufInput (org.neo4j.bolt.packstream.ByteBufInput)1