Struct cqdb_sys::tag_cqdb_writer
source · [−]#[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
sourceimpl Clone for tag_cqdb_writer
impl Clone for tag_cqdb_writer
sourcefn clone(&self) -> tag_cqdb_writer
fn clone(&self) -> tag_cqdb_writer
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for tag_cqdb_writer
impl Debug for tag_cqdb_writer
impl Copy for tag_cqdb_writer
Auto Trait Implementations
impl RefUnwindSafe for tag_cqdb_writer
impl Send for tag_cqdb_writer
impl Sync for tag_cqdb_writer
impl Unpin for tag_cqdb_writer
impl UnwindSafe for tag_cqdb_writer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more