/** * garrow_gio_output_stream_get_raw: * @output_stream: A #GArrowGIOOutputStream. * * Returns: (transfer none): The wrapped #GOutputStream. * * Since: 0.5.0 */ GOutputStream * garrow_gio_output_stream_get_raw(GArrowGIOOutputStream *output_stream) { auto arrow_output_stream = garrow_output_stream_get_raw(GARROW_OUTPUT_STREAM(output_stream)); auto arrow_gio_output_stream = std::static_pointer_cast<garrow::GIOOutputStream>(arrow_output_stream); auto gio_output_stream = arrow_gio_output_stream->get_output_stream(); return gio_output_stream; }
YETI_Result File::save(const DataBuffer & buffer) { OutputStreamReference output; YETI_CHECK_WARNING(get_output_stream(output)); return output->write_fully(buffer.get_data(), buffer.get_data_size()); }