Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruslan Nigmatullin committed May 31, 2023
1 parent 71cb32c commit 7f3687e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions sdk/include/opentelemetry/sdk/metrics/data/circular_buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,13 @@ class AdaptingCircularBufferCounter

static constexpr int32_t kNullIndex = std::numeric_limits<int32_t>::min();

// Index of the first populated element, may be kNullIndex if container is empty.
int32_t start_index_ = kNullIndex;
int32_t end_index_ = kNullIndex;
int32_t base_index_ = kNullIndex;
// Index of the last populated element, may be kNullIndex if container is empty.
int32_t end_index_ = kNullIndex;
// Index corresponding to the element located at the start of the backing array, may be kNullIndex
// if container is empty.
int32_t base_index_ = kNullIndex;
AdaptingIntegerArray backing_;
};

Expand Down

0 comments on commit 7f3687e

Please sign in to comment.