[−][src]Struct cqdb_sys::tag_cqdb_writer
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
impl Clone for tag_cqdb_writer
[src]
pub fn clone(&self) -> tag_cqdb_writer
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for tag_cqdb_writer
[src]
impl Debug for tag_cqdb_writer
[src]
Auto Trait Implementations
impl RefUnwindSafe for tag_cqdb_writer
[src]
impl Send for tag_cqdb_writer
[src]
impl Sync for tag_cqdb_writer
[src]
impl Unpin for tag_cqdb_writer
[src]
impl UnwindSafe for tag_cqdb_writer
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,