summaryrefslogtreecommitdiff
path: root/tools/file_io.h
blob: 959b79d492f4def35b86feeadbb9e4c7ccdcf9c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (c) the JPEG XL Project Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

#ifndef TOOLS_FILE_IO_H_
#define TOOLS_FILE_IO_H_

#include <stdint.h>

#include <vector>

namespace jpegxl {
namespace tools {

bool ReadFile(const char* filename, std::vector<uint8_t>* out);

bool WriteFile(const char* filename, const std::vector<uint8_t>& bytes);

}  // namespace tools
}  // namespace jpegxl

#endif  // TOOLS_FILE_IO_H_