OpenV2G
ByteStream.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2007-2018 Siemens AG
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as published
6  * by the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 /*******************************************************************
19  *
20  * @author Daniel.Peintner.EXT@siemens.com
21  * @version 2017-03-02
22  * @contact Richard.Kuntschke@siemens.com
23  *
24  * <p>Code generated by EXIdizer</p>
25  * <p>Schema: V2G_CI_MsgDef.xsd</p>
26  *
27  *
28  ********************************************************************/
29 
30 
31 
38 #ifndef BYTE_STREAM_H
39 #define BYTE_STREAM_H
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 
45 #include "EXITypes.h"
46 
56 int writeBytesToFile(uint8_t* data, size_t len, const char * filename);
57 
58 
69 int readBytesFromFile(const char * filename, uint8_t* data, size_t size, size_t* pos);
70 
71 #ifdef __cplusplus
72 }
73 #endif
74 
75 #endif /* BYTE_STREAM_H */
int readBytesFromFile(const char *filename, uint8_t *data, size_t size, size_t *pos)
Read bytes from file.
Definition: ByteStream.c:44
Basic type definitions and structs.
int writeBytesToFile(uint8_t *data, size_t len, const char *filename)
Write bytes to file.
Definition: ByteStream.c:68