Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cmp_tool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dominik Loidolt
cmp_tool
Merge requests
!16
Binary output
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Binary output
binary_output
into
master
Overview
0
Commits
4
Changes
7
Merged
Binary output
Dominik Loidolt
requested to merge
binary_output
into
master
Mar 27, 2023
Overview
0
Commits
4
Changes
7
add --binary option for read and write files in binary format
Edited
Mar 27, 2023
by
Dominik Loidolt
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
55ac1f30
4 commits,
Mar 27, 2023
7 files
+
191
−
137
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
7
include/cmp_io.h
+
10
−
7
View file @ 55ac1f30
Edit in single-file editor
Open in Web IDE
Show full file
@@ -28,26 +28,29 @@
#define BUFFER_LENGTH_DEF_FAKTOR 2
/* flags argument options (can be combined) */
#define CMP_IO_VERBOSE 1
#define CMP_IO_BINARY 2
void
print_help
(
const
char
*
program_name
);
int
cmp_cfg_read
(
const
char
*
file_name
,
struct
cmp_cfg
*
cfg
,
int
verbose_en
);
int
cmp_info_read
(
const
char
*
file_name
,
struct
cmp_info
*
info
,
int
verbose_en
);
ssize_t
read_file8
(
const
char
*
file_name
,
uint8_t
*
buf
,
uint32_t
buf_size
,
int
verbose_en
);
ssize_t
read_file8
(
const
char
*
file_name
,
uint8_t
*
buf
,
uint32_t
buf_size
,
int
flags
);
ssize_t
read_file_data
(
const
char
*
file_name
,
enum
cmp_data_type
data_type
,
void
*
buf
,
uint32_t
buf_size
,
int
verbose_en
);
void
*
buf
,
uint32_t
buf_size
,
int
flags
);
ssize_t
read_file_cmp_entity
(
const
char
*
file_name
,
struct
cmp_entity
*
ent
,
uint32_t
ent_size
,
int
verbose_en
);
uint32_t
ent_size
,
int
flags
);
ssize_t
read_file32
(
const
char
*
file_name
,
uint32_t
*
buf
,
uint32_t
buf_size
,
int
verbose_en
);
uint32_t
cmp_tool_gen_version_id
(
const
char
*
version
);
int
write_
cmp_
data_file
(
const
void
*
buf
,
uint32_t
buf_size
,
const
char
*
output_prefix
,
const
char
*
name_extension
,
int
verbose
);
int
write_data_
to_
file
(
const
void
*
buf
,
uint32_t
buf_size
,
const
char
*
output_prefix
,
const
char
*
name_extension
,
int
flags
);
int
write_input_data_to_file
(
void
*
data
,
uint32_t
data_size
,
enum
cmp_data_type
data_type
,
const
char
*
output_prefix
,
const
char
*
name_extension
,
int
verbose
);
const
char
*
output_prefix
,
const
char
*
name_extension
,
int
flags
);
int
cmp_info_to_file
(
const
struct
cmp_info
*
info
,
const
char
*
output_prefix
,
int
rdcu_cfg
);
int
cmp_cfg_fo_file
(
const
struct
cmp_cfg
*
cfg
,
const
char
*
output_prefix
,
int
verbose
);
void
cmp_cfg_print
(
const
struct
cmp_cfg
*
cfg
);
Loading