dpkg 1.21.11
Data Structures | Macros | Functions
Collaboration diagram for Buffer I/O:

Data Structures

struct  buffer_data
 

Macros

#define DPKG_BUFFER_SIZE   (32 * 1024)
 
#define BUFFER_WRITE_VBUF   1
 
#define BUFFER_WRITE_FD   2
 
#define BUFFER_WRITE_NULL   3
 
#define BUFFER_DIGEST_NULL   4
 
#define BUFFER_DIGEST_MD5   5
 
#define BUFFER_READ_FD   0
 
#define buffer_md5(buf, hash, limit)    buffer_digest(buf, hash, BUFFER_DIGEST_MD5, limit)
 
#define fd_md5(fd, hash, limit, err)
 
#define fd_fd_copy(fd1, fd2, limit, err)
 
#define fd_fd_copy_and_md5(fd1, fd2, hash, limit, err)
 
#define fd_vbuf_copy(fd, buf, limit, err)
 
#define fd_skip(fd, limit, err)    buffer_skip_Int(fd, BUFFER_READ_FD, limit, err)
 

Functions

off_t buffer_copy_IntPtr (int i, int typeIn, void *f, int typeDigest, void *p, int typeOut, off_t limit, struct dpkg_error *err) DPKG_ATTR_REQRET
 
off_t buffer_copy_IntInt (int i1, int typeIn, void *f, int typeDigest, int i2, int typeOut, off_t limit, struct dpkg_error *err) DPKG_ATTR_REQRET
 
off_t buffer_skip_Int (int I, int T, off_t limit, struct dpkg_error *err) DPKG_ATTR_REQRET
 
off_t buffer_digest (const void *buf, void *hash, int typeDigest, off_t length)
 

Detailed Description

Macro Definition Documentation

◆ BUFFER_DIGEST_MD5

#define BUFFER_DIGEST_MD5   5

◆ BUFFER_DIGEST_NULL

#define BUFFER_DIGEST_NULL   4

◆ buffer_md5

#define buffer_md5 (   buf,
  hash,
  limit 
)     buffer_digest(buf, hash, BUFFER_DIGEST_MD5, limit)

◆ BUFFER_READ_FD

#define BUFFER_READ_FD   0

◆ BUFFER_WRITE_FD

#define BUFFER_WRITE_FD   2

◆ BUFFER_WRITE_NULL

#define BUFFER_WRITE_NULL   3

◆ BUFFER_WRITE_VBUF

#define BUFFER_WRITE_VBUF   1

◆ DPKG_BUFFER_SIZE

#define DPKG_BUFFER_SIZE   (32 * 1024)

◆ fd_fd_copy

#define fd_fd_copy (   fd1,
  fd2,
  limit,
  err 
)
Value:
limit, err)
#define BUFFER_WRITE_FD
Definition: buffer.h:43
off_t buffer_copy_IntInt(int i1, int typeIn, void *f, int typeDigest, int i2, int typeOut, off_t limit, struct dpkg_error *err) DPKG_ATTR_REQRET
Definition: buffer.c:237
#define BUFFER_DIGEST_NULL
Definition: buffer.h:46
#define BUFFER_READ_FD
Definition: buffer.h:49

◆ fd_fd_copy_and_md5

#define fd_fd_copy_and_md5 (   fd1,
  fd2,
  hash,
  limit,
  err 
)
Value:
limit, err)
#define BUFFER_DIGEST_MD5
Definition: buffer.h:47

◆ fd_md5

#define fd_md5 (   fd,
  hash,
  limit,
  err 
)
Value:
limit, err)
#define BUFFER_WRITE_NULL
Definition: buffer.h:44
off_t buffer_copy_IntPtr(int i, int typeIn, void *f, int typeDigest, void *p, int typeOut, off_t limit, struct dpkg_error *err) DPKG_ATTR_REQRET
Definition: buffer.c:250

◆ fd_skip

#define fd_skip (   fd,
  limit,
  err 
)     buffer_skip_Int(fd, BUFFER_READ_FD, limit, err)

◆ fd_vbuf_copy

#define fd_vbuf_copy (   fd,
  buf,
  limit,
  err 
)
Value:
limit, err)
#define BUFFER_WRITE_VBUF
Definition: buffer.h:42

Function Documentation

◆ buffer_copy_IntInt()

off_t buffer_copy_IntInt ( int  i1,
int  typeIn,
void *  f,
int  typeDigest,
int  i2,
int  typeOut,
off_t  limit,
struct dpkg_error err 
)

References buffer_data::type.

◆ buffer_copy_IntPtr()

off_t buffer_copy_IntPtr ( int  i,
int  typeIn,
void *  f,
int  typeDigest,
void *  p,
int  typeOut,
off_t  limit,
struct dpkg_error err 
)

References buffer_data::type.

◆ buffer_digest()

off_t buffer_digest ( const void *  buf,
void *  hash,
int  typeDigest,
off_t  length 
)

◆ buffer_skip_Int()

off_t buffer_skip_Int ( int  I,
int  T,
off_t  limit,
struct dpkg_error err 
)

References buffer_data::type.