[][src]Function rust_hdfs::hdfsStreamBuilderSetDefaultBlockSize

pub unsafe extern "C" fn hdfsStreamBuilderSetDefaultBlockSize(
    bld: *mut hdfsStreamBuilder,
    defaultBlockSize: i64
) -> c_int

hdfsStreamBuilderSetDefaultBlockSize - Set the default block size for the stream. This is only relevant for output streams, which will create new blocks.

@param bld The hdfs stream builder. @param defaultBlockSize The default block size to set.

@return 0 on success, or -1 on error. Errno will be set on error. If you call this on an input stream builder, you will get EINVAL, because this configuration is not relevant to input streams.