MCPcopy Create free account
hub / github.com/apache/paimon-rust / box_read_builder_state

Function box_read_builder_state

bindings/c/src/table.rs:47–50  ·  view source on GitHub ↗

Helper to box a ReadBuilderState and return a raw pointer.

(state: ReadBuilderState)

Source from the content-addressed store, hash-verified

45
46// Helper to box a ReadBuilderState and return a raw pointer.
47unsafe fn box_read_builder_state(state: ReadBuilderState) -> *mut paimon_read_builder {
48 let inner = Box::into_raw(Box::new(state)) as *mut c_void;
49 Box::into_raw(Box::new(paimon_read_builder { inner }))
50}
51
52// Helper to box a TableReadState and return a raw pointer.
53unsafe fn box_table_read_state(state: TableReadState) -> *mut paimon_table_read {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected