Search in sources :

Example 11 with PackedOutputArray

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

the class BoltV3TransportIT method beginMessage.

private byte[] beginMessage(Map<String, Object> metadata) throws IOException {
    PackedOutputArray out = new PackedOutputArray();
    Neo4jPack.Packer packer = util.getNeo4jPack().newPacker(out);
    packer.packStructHeader(1, BeginMessage.SIGNATURE);
    packer.pack(asMapValue(metadata));
    return out.bytes();
}
Also used : PackedOutputArray(org.neo4j.bolt.packstream.PackedOutputArray) Neo4jPack(org.neo4j.bolt.packstream.Neo4jPack)

Aggregations

Neo4jPack (org.neo4j.bolt.packstream.Neo4jPack)11 PackedOutputArray (org.neo4j.bolt.packstream.PackedOutputArray)11 ParameterizedTest (org.junit.jupiter.params.ParameterizedTest)1 MethodSource (org.junit.jupiter.params.provider.MethodSource)1 Neo4jPackV2 (org.neo4j.bolt.packstream.Neo4jPackV2)1 TextArray (org.neo4j.values.storable.TextArray)1