Rizin
unix-like reverse engineering framework and cli tools
zip_source_write.c File Reference
#include "zipint.h"

Go to the source code of this file.

Functions

ZIP_EXTERN zip_int64_t zip_source_write (zip_source_t *src, const void *data, zip_uint64_t length)
 

Function Documentation

◆ zip_source_write()

ZIP_EXTERN zip_int64_t zip_source_write ( zip_source_t src,
const void *  data,
zip_uint64_t  length 
)

Definition at line 39 of file zip_source_write.c.

39  {
41  zip_error_set(&src->error, ZIP_ER_INVAL, 0);
42  return -1;
43  }
44 
45  return _zip_source_call(src, (void *)data, length, ZIP_SOURCE_WRITE);
46 }
lzma_index * src
Definition: index.h:567
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 static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len static semflg const void static shmflg const struct timespec struct timespec static rem const char static group const void length
Definition: sflib.h:133
ZIP_EXTERN void zip_error_set(zip_error_t *_Nullable, int, int)
Definition: zip_error.c:126
@ ZIP_SOURCE_WRITE
Definition: zip.h:231
#define ZIP_ER_INVAL
Definition: zip.h:123
zip_int64_t _zip_source_call(zip_source_t *src, void *data, zip_uint64_t length, zip_source_cmd_t command)
#define ZIP_INT64_MAX
Definition: zipconf.h:54
#define ZIP_SOURCE_IS_OPEN_WRITING(src)
Definition: zipint.h:403

References _zip_source_call(), length, src, ZIP_ER_INVAL, zip_error_set(), ZIP_INT64_MAX, ZIP_SOURCE_IS_OPEN_WRITING, and ZIP_SOURCE_WRITE.

Referenced by _zip_write(), and copy_source().