#[repr(C)]
pub struct tag_cqdb_writer { /* private fields */ }
Expand description

CQDB status codes. \addtogroup cqdb_writer CQDB Writer API @{

The CQDB Writer API constructs a CQDB chunk on a seekable stream. The seekable stream must be created by the fopen() function with writable and binary flags (“wb”). The CQDB Writer API can build a CQDB chunk at any position on the stream; one can thus write some data, append a CQDB chunk, and continue writing other data on the stream.

By default, the function cqdb_writer() constructs a database with forward (string to integer identifier) and backward (integer identifier to string) lookups. The data for reverse lookup is omitted with ::CQDB_ONEWAY flag specified.

It is recommended to keep the maximum number of identifiers as smallest as possible because reverse lookup is maintained by a array with the size of sizeof(int) * (maximum number of identifiers + 1). For example, putting a set of integer identifers (0, 1, 1000) creates a reverse lookup array with 1001 elements only to waste the disk space for 998 (= 1001-3) elements in the array.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.