* Obtains a ref that is a view over the `count` elements of this TArrayRef starting at `offset`. * * The behavior is undefined in either offset or count is out of range. */
| 198 | * The behavior is undefined in either offset or count is out of range. |
| 199 | */ |
| 200 | TArrayRef subspan(size_t offset) const { |
| 201 | Y_ASSERT(offset <= size()); |
| 202 | return TArrayRef(data() + offset, size() - offset); |
| 203 | } |
| 204 | |
| 205 | TArrayRef subspan(size_t offset, size_t count) const { |
| 206 | Y_ASSERT(offset + count <= size()); |
no test coverage detected