mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 23:33:20 +08:00
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
20 lines
463 B
C++
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);
|