X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/c8b6da2295a35cda0232f147993a0ed6ff68b207..4ecde0e1ff60d5e3d217dc1e5ca12c78864804cc:/client/loclass/fileutils.h diff --git a/client/loclass/fileutils.h b/client/loclass/fileutils.h index 623190a6..cfe65187 100644 --- a/client/loclass/fileutils.h +++ b/client/loclass/fileutils.h @@ -49,7 +49,16 @@ * @return 0 for ok, 1 for failz */ int saveFile(const char *preferredName, const char *suffix, const void* data, size_t datalen); +/** + * @brief Utility function to save load binary data from a a file. This method takes a filename, + * Should only be used for fixed-size binary files + * @param fileName the name of the file + * @param data a buffer to place data in + * @param datalen the length of the data/data. + * @return + */ +int loadFile(const char *fileName, void* data, size_t datalen); /** * Utility function to print to console. This is used consistently within the library instead