| 60 | } |
| 61 | |
| 62 | int CircularBuffer::Get() |
| 63 | { |
| 64 | int result = -1; |
| 65 | full = false; |
| 66 | |
| 67 | if (!empty) { |
| 68 | result = buffer[outdex]; |
| 69 | outdex = Next(outdex); |
| 70 | if (outdex == index) empty = true; |
| 71 | } |
| 72 | return result; |
| 73 | } |
| 74 | |
| 75 | int CircularBuffer::Capacity() |
| 76 | { |
no outgoing calls