24 #ifndef GRAPHLAB_RESIZING_COUNTING_SINK
25 #define GRAPHLAB_RESIZING_COUNTING_SINK
27 #include <graphlab/util/charstream.hpp>
31 typedef charstream_impl::resizing_array_sink<false> resizing_array_sink;
38 resizing_array_sink* ras;
42 typedef resizing_array_sink::char_type char_type;
43 typedef resizing_array_sink::category category;
50 inline size_t size()
const {
return ras->size(); }
51 inline char* c_str() {
return ras->c_str(); }
53 inline void clear() { ras->clear(); }
56 return ras->optimal_buffer_size();
59 inline void relinquish() { ras->relinquish(); }
61 inline void advance(std::streamsize n) { ras->advance(n); }
64 inline std::streamsize write(
const char* s, std::streamsize n) {
65 return ras->write(s, n);