MCPcopy Create free account
hub / github.com/bytedance/bolt / setOffsetAndSize

Method setOffsetAndSize

bolt/vector/ComplexVector.h:609–614  ·  view source on GitHub ↗

Its the caller responsibility to make sure that `offsets_` and `sizes_` are safe to write at index i, i.ex not shared, or not large enough.

Source from the content-addressed store, hash-verified

607 // Its the caller responsibility to make sure that `offsets_` and `sizes_` are
608 // safe to write at index i, i.ex not shared, or not large enough.
609 void
610 setOffsetAndSize(vector_size_t i, vector_size_t offset, vector_size_t size) {
611 DCHECK_LT(i, BaseVector::length_);
612 offsets_->asMutable<vector_size_t>()[i] = offset;
613 sizes_->asMutable<vector_size_t>()[i] = size;
614 }
615
616 /// Verify that an ArrayVector/MapVector does not contain overlapping [offset,
617 /// size] ranges. Throws in case overlaps are found.

Callers 15

TEST_FFunction · 0.80
pruneRandomSubfieldFunction · 0.80
ARRAY>Method · 0.80
MAP>Method · 0.80
ARRAY>Method · 0.80
MAP>Method · 0.80
extractValuesMethod · 0.80
extractAccumulatorsMethod · 0.80
extractValuesMethod · 0.80
extractAccumulatorsMethod · 0.80
extractValuesMethod · 0.80
extractValuesMethod · 0.80

Calls

no outgoing calls

Tested by 11

TEST_FFunction · 0.64
pruneRandomSubfieldFunction · 0.64
ARRAY>Method · 0.64
MAP>Method · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64