Skip to main content

laminar_writer_write

Function laminar_writer_write 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn laminar_writer_write( writer: *mut LaminarWriter, batch: *mut LaminarRecordBatch, ) -> i32
Expand description

Write a record batch to the source.

§Arguments

  • writer - Writer handle
  • batch - Record batch to write (ownership is transferred)

§Returns

LAMINAR_OK on success, or an error code.

§Safety

  • writer must be a valid writer handle
  • batch must be a valid record batch handle (will be consumed)