Files
compute-runtime/offline_compiler/decoder/helper.h
Krystian 526a3a664b Adding new tool for decoding and encoding OCL binary.
Decoder decodes the binary to kernel heaps and patch token data, which
is in a human readible form. Encoder encodes it back to binary form.

Change-Id: Id07b1294ba24360e90c824171741cf14bd43cfad
2018-10-05 12:18:18 +02:00

20 lines
463 B
C++

/*
* Copyright (C) 2018 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include <string>
#include <vector>
#include <exception>
void addSlash(std::string &path);
std::vector<char> readBinaryFile(const std::string &fileName);
void readFileToVectorOfStrings(std::vector<std::string> &lines, const std::string &fileName, bool replaceTabs = false);
size_t findPos(const std::vector<std::string> &lines, const std::string &whatToFind);