Rizin
unix-like reverse engineering framework and cli tools
zip_source_supports.c File Reference
#include <stdarg.h>
#include "zipint.h"

Go to the source code of this file.

Functions

zip_int64_t zip_source_supports (zip_source_t *src)
 
ZIP_EXTERN zip_int64_t zip_source_make_command_bitmap (zip_source_cmd_t cmd0,...)
 

Function Documentation

◆ zip_source_make_command_bitmap()

ZIP_EXTERN zip_int64_t zip_source_make_command_bitmap ( zip_source_cmd_t  cmd0,
  ... 
)

Definition at line 47 of file zip_source_supports.c.

47  {
48  zip_int64_t bitmap;
49  va_list ap;
50 
51  bitmap = ZIP_SOURCE_MAKE_COMMAND_BITMASK(cmd0);
52 
53 
54  va_start(ap, cmd0);
55  for (;;) {
56  int cmd = va_arg(ap, int);
57  if (cmd < 0) {
58  break;
59  }
61  }
62  va_end(ap);
63 
64  return bitmap;
65 }
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags cmd
Definition: sflib.h:79
#define ZIP_SOURCE_MAKE_COMMAND_BITMASK(cmd)
Definition: zip.h:243
int64_t zip_int64_t
Definition: zipconf.h:38

References cmd, and ZIP_SOURCE_MAKE_COMMAND_BITMASK.

Referenced by _zip_source_window_new(), compress_callback(), crc_read(), pkware_decrypt(), pkware_encrypt(), read_data(), source_hole_cb(), source_nul_cb(), winzip_aes_decrypt(), winzip_aes_encrypt(), zip_source_file_common_new(), and zip_source_function_create().

◆ zip_source_supports()

zip_int64_t zip_source_supports ( zip_source_t src)

Definition at line 41 of file zip_source_supports.c.

41  {
42  return src->supports;
43 }
lzma_index * src
Definition: index.h:567

References src.

Referenced by _zip_source_window_new(), crc_read(), zip_close(), zip_file_is_seekable(), zip_open_from_source(), zip_source_accept_empty(), and zip_source_open().