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

Function SliceBuffer

cpp/src/arrow/buffer.h:446–450  ·  view source on GitHub ↗

\brief Construct a view on a buffer at the given offset and length. This function cannot fail and does not check for errors (except in debug builds)

Source from the content-addressed store, hash-verified

444///
445/// This function cannot fail and does not check for errors (except in debug builds)
446static inline std::shared_ptr<Buffer> SliceBuffer(std::shared_ptr<Buffer> buffer,
447 const int64_t offset,
448 const int64_t length) {
449 return std::make_shared<Buffer>(std::move(buffer), offset, length);
450}
451
452/// \brief Construct a view on a buffer at the given offset, up to the buffer's end.
453///

Callers 15

TESTFunction · 0.85
SliceBufferSafeFunction · 0.85
TESTFunction · 0.85
TEST_FFunction · 0.85
DoReadAtMethod · 0.85
TEST_PFunction · 0.85
ReadMethod · 0.85
ReadMethod · 0.85
TESTFunction · 0.85
SliceMethod · 0.85
ReadBytesZeroCopyFunction · 0.85
ConsumeWholeObjectFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by 15

TESTFunction · 0.68
TESTFunction · 0.68
TEST_FFunction · 0.68
TEST_PFunction · 0.68
TESTFunction · 0.68
ConsumeWholeObjectFunction · 0.68
AssertChunkingFunction · 0.68
AssertChunkingBlockSizeFunction · 0.68
AssertStraddledChunkingFunction · 0.68
TEST_PFunction · 0.68
TESTFunction · 0.68
CheckDecodingMethod · 0.68