-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCDL_FileWriting.hpp
More file actions
25 lines (22 loc) · 902 Bytes
/
CDL_FileWriting.hpp
File metadata and controls
25 lines (22 loc) · 902 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef CDL_FileWriting_hpp
#define CDL_FileWriting_hpp
#include <stdio.h>
#include <vector>
#include <cstring>
#include <algorithm>
#include <fstream>
#include <iostream>
#include <string>
#include <sstream>
namespace codeDataLogger {
void copyOverOtherStatesDiffContents(std::ostream* file);
void writeInteger(std::ofstream* file, int num);
void writeBlock(std::ofstream* file, const char *cdl_block, int size);
uint8_t readInteger8(std::ifstream* file);
uint32_t readInteger32(std::ifstream* file);
std::string readString(std::ifstream* file, int num);
void readBlock(std::ifstream* file, char* buffer);
void writeDataBytes(std::ostream* file, int start_range_address, int range_size, unsigned char* memory);
void writeDataBytes(const std::ofstream& file, int start_range_address, int range_size, unsigned char* memory);
}
#endif /* CDL_FileWriting_hpp */