22 #ifndef SRECORD_OUTPUT_FILE_MSBIN_H
23 #define SRECORD_OUTPUT_FILE_MSBIN_H
100 enum { MAX_PENDING_DATA_SIZE = 50*1024*1024 };
109 void write_dword_le(uint32_t d);
123 static uint32_t
checksum(
const unsigned char *data,
size_t len);
134 void write_file_header(uint32_t start, uint32_t length);
147 void write_record_header(uint32_t addr, uint32_t length, uint32_t
checksum);
156 void write_data(
const record &r);
168 void flush_pending_records(
const record *r = NULL);
182 void append_pending_record(
const record &r);
191 bool start_address_set;
210 bool beginning_of_file;
215 typedef std::vector<std::shared_ptr<record> > record_vector;
223 record_vector pending_records;
The srecord::output_file_msbin class is used to represent an output file in Windows CE Binary Image D...
void write(const record &)
The write method is used to write a recordonto an output.
bool preferred_block_size_set(int nbytes)
The preferred_block_size_set method is is to set a precific number of bytes for the preferred block s...
void address_length_set(int)
The address_length_set method is used to set the minimum number of bytes to be written for addresses ...
int preferred_block_size_get() const
The preferred_block_size_get method is used to get the proferred block size of the output fformat.
virtual ~output_file_msbin()
The destructor.
void line_length_set(int)
The set_line_length method is used to set the maximum length of an output line, for those formats for...
void notify_upper_bound(unsigned long addr)
The notify_upper_bound method is used to notify the output class of the upper bound (highest address ...
static pointer create(const std::string &file_name)
The create class method is used to create new dynamically allocated instances of this class.
bool is_binary(void) const
The is_binary method is used to to determine whether or not a file format is binary (true) of text (f...
const char * format_name() const
The format_name method is used to obtain the name of this output format.
The srecord::output_file class is used to represent a generic output file.
int checksum
The checksum instance variable is used record the running checksum.
std::shared_ptr< output > pointer
The srecord::record class is used to represent a data record read from a file.
uint32_t address_t
The type of record addresses.