14 #ifndef LLVM_SUPPORT_RAW_SHA1_OSTREAM_H
15 #define LLVM_SUPPORT_RAW_SHA1_OSTREAM_H
28 void write_impl(
const char *
Ptr,
size_t Size)
override {
A class that wrap the SHA1 algorithm.
void init()
Reinitialize the internal state.
StringRef result()
Return a reference to the current raw 160-bits SHA1 for the digested data since the last call to init...
void update(ArrayRef< uint8_t > Data)
Digest more data.
void resetHash()
Reset the internal state to start over from scratch.
uint64_t current_pos() const override
Return the current position within the stream, not counting the bytes currently in the buffer...
A raw_ostream that hash the content using the sha1 algorithm.
StringRef sha1()
Return the current SHA1 hash for the content of the stream.
constexpr char Size[]
Key for Kernel::Arg::Metadata::mSize.
This class implements an extremely fast bulk output stream that can only output to a stream...
StringRef - Represent a constant reference to a string, i.e.