java.lang.Object
app.keve.ktlsh.benchmarks.HashBenchmark.MyState
- Enclosing class:
- HashBenchmark
public static class HashBenchmark.MyState extends Object
The state class of the benchmarks holding the buffers.
- Author:
- keve
-
Constructor Summary
Constructors Constructor Description MyState()
-
Method Summary
Modifier and Type Method Description byte[]
getHugeBuf1GiB()
Getter for huge buffer.byte[]
getLargeBuf16MiB()
Getter for large buffer.byte[]
getSmallBuf32KiB()
Getter for small buffer.void
init()
Initialise the state class members.
-
Constructor Details
-
MyState
public MyState()
-
-
Method Details
-
init
Initialise the state class members.- Throws:
NoSuchAlgorithmException
- if TLSH algorithm cannot be found.
-
getSmallBuf32KiB
public byte[] getSmallBuf32KiB()Getter for small buffer.- Returns:
- the buffer
-
getLargeBuf16MiB
public byte[] getLargeBuf16MiB()Getter for large buffer.- Returns:
- the buffer
-
getHugeBuf1GiB
public byte[] getHugeBuf1GiB()Getter for huge buffer.- Returns:
- the buffer
-