hsbench: add stream compress functionality

This commit is contained in:
Alex Coyte
2017-03-06 11:58:53 +11:00
committed by Matthew Barr
parent 952f0aad21
commit 5f6291529f
4 changed files with 80 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, Intel Corporation
* Copyright (c) 2016-2017, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -34,6 +34,7 @@
#include "hs_runtime.h"
#include <memory>
#include <vector>
/** Structure for the result of a single complete scan. */
struct ResultEntry {
@@ -79,6 +80,9 @@ public:
void streamClose(std::unique_ptr<EngineStream> stream,
ResultEntry &result) const;
void streamCompressExpand(EngineStream &stream,
std::vector<char> &temp) const;
void streamScan(EngineStream &stream, const char *data, unsigned int len,
unsigned int id, ResultEntry &result) const;