Skip to content

[C++] Add BinaryArray::total_values_length() #25228

@asfimport

Description

@asfimport

It's often useful to compute the total data size of a binary array.
Sample implementation:

  int64_t total_values_length() const {
    return raw_value_offsets_[length() + data_->offset] - raw_value_offsets_[data_->offset];
  }

Reporter: Antoine Pitrou / @pitrou
Assignee: Wes McKinney / @wesm

Related issues:

PRs and other links:

Note: This issue was originally created as ARROW-9116. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions