Struct cdb::CDBMake [] [src]

pub struct CDBMake {
    // some fields omitted
}

Base interface for making a CDB file.

Methods

impl CDBMake

fn new(file: File) -> Result<CDBMake>

Create a new CDB maker.

fn add(&mut self, key: &[u8], data: &[u8]) -> Result<()>

Add a record to the CDB file.

fn finish(&mut self) -> Result<()>

Finish writing to the CDB file and flush its contents.