* garrow_buffer_equal_n_bytes: * @buffer: A #GArrowBuffer. * @other_buffer: A #GArrowBuffer to be compared. * @n_bytes: The number of first bytes to be compared. * * Returns: %TRUE if both of them have the same data in the first * `n_bytes`, %FALSE otherwise. * * Since: 0.4.0 */
| 237 | * Since: 0.4.0 |
| 238 | */ |
| 239 | gboolean |
| 240 | garrow_buffer_equal_n_bytes(GArrowBuffer *buffer, |
| 241 | GArrowBuffer *other_buffer, |
| 242 | gint64 n_bytes) |
| 243 | { |
| 244 | const auto arrow_buffer = garrow_buffer_get_raw(buffer); |
| 245 | const auto arrow_other_buffer = garrow_buffer_get_raw(other_buffer); |
| 246 | return arrow_buffer->Equals(*arrow_other_buffer, n_bytes); |
| 247 | } |
| 248 | |
| 249 | /** |
| 250 | * garrow_buffer_is_mutable: |
nothing calls this directly
no test coverage detected