~snapcpp/snapcpp/cassandra-cpp-driver

« back to all changes in this revision

Viewing changes to src/ring_buffer.hpp

  • Committer: R. Douglas Barbieri
  • Date: 2017-10-16 01:45:58 UTC
  • Revision ID: doug@dooglio.net-20171016014558-na2sj1b10rxvcm0k
CheckedĀ outĀ 2.5.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
#ifndef __CASS_RING_BUFFER_HPP_INCLUDED__
43
43
#define __CASS_RING_BUFFER_HPP_INCLUDED__
44
44
 
45
 
#include "small_vector.hpp"
 
45
#include "fixed_vector.hpp"
46
46
 
47
47
#include <uv.h>
48
48
 
104
104
  // Return pointers and sizes of multiple internal data chunks available for
105
105
  // reading from position
106
106
  template <size_t N>
107
 
  size_t peek_multiple(Position pos, SmallVector<uv_buf_t, N>* bufs);
 
107
  size_t peek_multiple(Position pos, FixedVector<uv_buf_t, N>* bufs);
108
108
 
109
109
  // Find first appearance of `delim` in buffer or `limit` if `delim`
110
110
  // wasn't found.
136
136
};
137
137
 
138
138
template <size_t N>
139
 
size_t RingBuffer::peek_multiple(Position pos, SmallVector<uv_buf_t, N>* bufs) {
 
139
size_t RingBuffer::peek_multiple(Position pos, FixedVector<uv_buf_t, N>* bufs) {
140
140
  Buffer* buf = pos.buf;
141
141
  size_t offset = pos.pos;
142
142
  size_t total = 0;