MCPcopy Create free account
hub / github.com/apache/arrow / garrow_buffer_equal_n_bytes

Function garrow_buffer_equal_n_bytes

c_glib/arrow-glib/buffer.cpp:239–247  ·  view source on GitHub ↗

* 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 */

Source from the content-addressed store, hash-verified

237 * Since: 0.4.0
238 */
239gboolean
240garrow_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:

Callers

nothing calls this directly

Calls 2

garrow_buffer_get_rawFunction · 0.85
EqualsMethod · 0.45

Tested by

no test coverage detected