We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 726210a commit 7f11af0Copy full SHA for 7f11af0
src/AudioBasic/Collections/QueueFromVector.h
@@ -41,9 +41,11 @@ class QueueFromVector {
41
_end_pos = 0;
42
return false;
43
}
44
+ // provide data at haed
45
data = vector[0];
46
+ // shift all data to the left by 1 position
47
memmove(&vector[0], &vector[1], (_end_pos-1)*sizeof(T));
- vector[_end_pos--] = null_value;
48
+ vector[--_end_pos] = null_value;
49
return true;
50
51
0 commit comments