Peek reads the oldest entry from list without moving head pointer
()
| 184 | |
| 185 | // Peek reads the oldest entry from list without moving head pointer |
| 186 | func (q *BytesQueue) Peek() ([]byte, error) { |
| 187 | data, _, err := q.peek(q.head) |
| 188 | return data, err |
| 189 | } |
| 190 | |
| 191 | // Get reads entry from index |
| 192 | func (q *BytesQueue) Get(index int) ([]byte, error) { |