* garrow_compressed_input_stream_new: * @codec: A #GArrowCodec for compressed data in the @raw. * @raw: A #GArrowInputStream that contains compressed data. * @error: (nullable): Return location for a #GError or %NULL. * * Returns: A newly created #GArrowCompressedInputStream. * * Since: 0.12.0 */
| 1181 | * Since: 0.12.0 |
| 1182 | */ |
| 1183 | GArrowCompressedInputStream * |
| 1184 | garrow_compressed_input_stream_new(GArrowCodec *codec, |
| 1185 | GArrowInputStream *raw, |
| 1186 | GError **error) |
| 1187 | { |
| 1188 | auto arrow_codec = garrow_codec_get_raw(codec).get(); |
| 1189 | auto arrow_raw = garrow_input_stream_get_raw(raw); |
| 1190 | auto arrow_stream = arrow::io::CompressedInputStream::Make(arrow_codec, arrow_raw); |
| 1191 | if (garrow::check(error, arrow_stream, "[compressed-input-stream][new]")) { |
| 1192 | return garrow_compressed_input_stream_new_raw(&(arrow_stream.ValueOrDie()), |
| 1193 | codec, |
| 1194 | raw); |
| 1195 | } else { |
| 1196 | return NULL; |
| 1197 | } |
| 1198 | } |
| 1199 | |
| 1200 | G_END_DECLS |
| 1201 |
nothing calls this directly
no test coverage detected