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

Method ConsumeChunks

cpp/src/arrow/ipc/message.cc:772–797  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

770
771 private:
772 Status ConsumeChunks() {
773 while (state_ != State::EOS) {
774 if (buffered_size_ < next_required_size_) {
775 return Status::OK();
776 }
777
778 switch (state_) {
779 case State::INITIAL:
780 RETURN_NOT_OK(ConsumeInitialChunks());
781 break;
782 case State::METADATA_LENGTH:
783 RETURN_NOT_OK(ConsumeMetadataLengthChunks());
784 break;
785 case State::METADATA:
786 RETURN_NOT_OK(ConsumeMetadataChunks());
787 break;
788 case State::BODY:
789 RETURN_NOT_OK(ConsumeBodyChunks());
790 break;
791 case State::EOS:
792 return Status::OK();
793 }
794 }
795
796 return Status::OK();
797 }
798
799 Status ConsumeInitialData(const uint8_t* data, int64_t size) {
800 return ConsumeInitial(bit_util::FromLittleEndian(util::SafeLoadAs<int32_t>(data)));

Callers

nothing calls this directly

Calls 1

OKFunction · 0.50

Tested by

no test coverage detected