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

Method ReserveScalarStorage

cpp/src/arrow/json/parser.cc:922–929  ·  view source on GitHub ↗

Reserve storage for scalars, these can occupy almost all of the JSON buffer

Source from the content-addressed store, hash-verified

920
921 /// Reserve storage for scalars, these can occupy almost all of the JSON buffer
922 Status ReserveScalarStorage(int64_t size) override {
923 auto available_storage = scalar_values_builder_.value_data_capacity() -
924 scalar_values_builder_.value_data_length();
925 if (size <= available_storage) {
926 return Status::OK();
927 }
928 return scalar_values_builder_.ReserveData(size - available_storage);
929 }
930
931 Status status_;
932 RawBuilderSet builder_set_;

Callers 1

ParseBlockFunction · 0.80

Calls 4

value_data_capacityMethod · 0.80
value_data_lengthMethod · 0.80
OKFunction · 0.70
ReserveDataMethod · 0.45

Tested by

no test coverage detected