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();
}
Aggregations