FLEncoder_NewWithOptions

Function FLEncoder_NewWithOptions 

Source
pub unsafe extern "C" fn FLEncoder_NewWithOptions(
    format: FLEncoderFormat,
    reserveSize: usize,
    uniqueStrings: bool,
) -> FLEncoder
Expand description

Creates a new encoder, allowing some options to be customized. @param format The output format to generate (Fleece, JSON, or JSON5.) @param reserveSize The number of bytes to preallocate for the output. (Default is 256) @param uniqueStrings (Fleece only) If true, string values that appear multiple times will be written as a single shared value. This saves space but makes encoding slightly slower. You should only turn this off if you know you’re going to be writing large numbers of non-repeated strings. (Default is true)