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

Function SliceBuffer

cpp/src/arrow/buffer.h:399–403  ·  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

397///
398/// This function cannot fail and does not check for errors (except in debug builds)
399static inline std::shared_ptr<Buffer> SliceBuffer(std::shared_ptr<Buffer> buffer,
400 const int64_t offset,
401 const int64_t length) {
402 return std::make_shared<Buffer>(std::move(buffer), offset, length);
403}
404
405/// \brief Construct a view on a buffer at the given offset, up to the buffer's end.
406///

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
DoConsumeMethod · 0.68