mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-18 10:46:38 +00:00
18 lines
819 B
C
18 lines
819 B
C
/* radare - LGPLv3 - Copyright 2017 - xarkes */
|
|
#ifndef _AR_H
|
|
#define _AR_H
|
|
|
|
/* Offset passed is always the real io->off of the inspected file,
|
|
* the functions automatically translate it to relative offset within the archive */
|
|
R_API RBuffer *ar_open_file(const char *arname, const char *filename);
|
|
R_API int ar_close(RBuffer *b);
|
|
R_API int ar_read_at(RBuffer *b, ut64 off, void *buf, int count);
|
|
R_API int ar_write_at(RBuffer *b, ut64 off, void *buf, int count);
|
|
|
|
int ar_read(RBuffer *b, void *dest, int len);
|
|
int ar_read_until_slash(RBuffer *b, char *buffer, int limit);
|
|
int ar_read_header(RBuffer *b, char *buffer);
|
|
int ar_read_file(RBuffer *b, char *buffer, bool lookup, RList *files, const char *filename);
|
|
int ar_read_filename_table(RBuffer *b, char *buffer, RList *files, const char *filename);
|
|
#endif // _AR_H
|