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

Class ByteArray

cpp/src/parquet/types.h:657–671  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

655// ----------------------------------------------------------------------
656
657struct ByteArray {
658 ByteArray() : len(0), ptr(NULLPTR) {}
659 ByteArray(uint32_t len, const uint8_t* ptr) : len(len), ptr(ptr) {}
660
661 ByteArray(::std::string_view view) // NOLINT implicit conversion
662 : ByteArray(static_cast<uint32_t>(view.size()),
663 reinterpret_cast<const uint8_t*>(view.data())) {}
664
665 explicit operator std::string_view() const {
666 return std::string_view{reinterpret_cast<const char*>(ptr), len};
667 }
668
669 uint32_t len;
670 const uint8_t* ptr;
671};
672
673inline bool operator==(const ByteArray& left, const ByteArray& right) {
674 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
TEST_PFunction · 0.85
ByteArrayFromStringFunction · 0.85
ToByteArrayMethod · 0.85
TESTFunction · 0.85
TEST_FFunction · 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
TEST_PFunction · 0.68
ByteArrayFromStringFunction · 0.68
ToByteArrayMethod · 0.68
TESTFunction · 0.68
TEST_FFunction · 0.68
SetupEncoderDecoderMethod · 0.68