LLDB mainline
LZMA.h
Go to the documentation of this file.
1//===-- LZMA.h --------------------------------------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLDB_HOST_LZMA_H
10#define LLDB_HOST_LZMA_H
11
12#include "llvm/ADT/ArrayRef.h"
13#include "llvm/Support/Error.h"
14
15namespace llvm {
16class Error;
17} // End of namespace llvm
18
19namespace lldb_private {
20
21namespace lzma {
22
23bool isAvailable();
24
25llvm::Expected<uint64_t>
26getUncompressedSize(llvm::ArrayRef<uint8_t> InputBuffer);
27
28llvm::Error uncompress(llvm::ArrayRef<uint8_t> InputBuffer,
29 llvm::SmallVectorImpl<uint8_t> &Uncompressed);
30
31} // End of namespace lzma
32
33} // End of namespace lldb_private
34
35#endif // LLDB_HOST_LZMA_H
llvm::Error Error
llvm::Expected< uint64_t > getUncompressedSize(llvm::ArrayRef< uint8_t > InputBuffer)
Definition LZMA.cpp:24
bool isAvailable()
Definition LZMA.cpp:22
llvm::Error uncompress(llvm::ArrayRef< uint8_t > InputBuffer, llvm::SmallVectorImpl< uint8_t > &Uncompressed)
Definition LZMA.cpp:28
A class that represents a running process on the host machine.