Struct db_accounting

Struct Documentation

struct db_accounting

manage the pointers, buffer sizes and byte offsets for the 2 buffers used in the Receiver algorithms.

Public Members

char *curr_buf

Pointer to the current data buffer to which data are written.

char *next_buf

Pointer to the next data buffer to which data are written.

uint64_t bufsz

Size of the curr and next buffers.

uint64_t curr_byte_offset

Byte offset from the start of the observation of the first byte in the curr_buf.

uint64_t next_byte_offset

Byte offset from the start of the observation of the first byte in the next_buf.

uint64_t last_byte_offset

Byte offset from the start of the observation of the last byte in the next_buf.

uint64_t bytes_curr_buf

Number of bytes written to the curr_buf.

uint64_t bytes_next_buf

Number of bytes written to the next buf.