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

Class ByteArray

cpp/src/parquet/types.h:649–663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

647// ----------------------------------------------------------------------
648
649struct ByteArray {
650 ByteArray() : len(0), ptr(NULLPTR) {}
651 ByteArray(uint32_t len, const uint8_t* ptr) : len(len), ptr(ptr) {}
652
653 ByteArray(::std::string_view view) // NOLINT implicit conversion
654 : ByteArray(static_cast<uint32_t>(view.size()),
655 reinterpret_cast<const uint8_t*>(view.data())) {}
656
657 explicit operator std::string_view() const {
658 return std::string_view{reinterpret_cast<const char*>(ptr), len};
659 }
660
661 uint32_t len;
662 const uint8_t* ptr;
663};
664
665inline bool operator==(const ByteArray& left, const ByteArray& right) {
666 return left.len == right.len &&

Callers 15

TEST_PFunction · 0.85
BuildBufferInternalMethod · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
TEST_FFunction · 0.85
TESTFunction · 0.85
ByteArrayFromStringFunction · 0.85
ToByteArrayMethod · 0.85
TESTFunction · 0.85
TEST_FFunction · 0.85
CopyMethod · 0.85

Calls

no outgoing calls

Tested by 15

TEST_PFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
TEST_FFunction · 0.68
TESTFunction · 0.68
ByteArrayFromStringFunction · 0.68
ToByteArrayMethod · 0.68
TESTFunction · 0.68
TEST_FFunction · 0.68
SetupEncoderDecoderMethod · 0.68
TEST_FFunction · 0.68