MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / subspan

Method subspan

source/util/span.h:57–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 pointer data() const { return first_; }
56 reference operator[](size_type idx) const { return first_[idx]; }
57 Span<T> subspan(size_type offset) const {
58 if (count_ > offset) {
59 return Span(first_ + offset, count_ - offset);
60 }
61 return Span<T>();
62 }
63
64 private:
65 T* first_ = nullptr;

Callers 3

spvTextEncodeOperandFunction · 0.80
parseOperandMethod · 0.80
TESTFunction · 0.80

Calls 1

SpanClass · 0.70

Tested by 1

TESTFunction · 0.64