5 #include "include/bufferlist.h"
11 bufferptr p1 = new buffer("123456",6);
14 cout << "it is '" << p1.c_str() << "'" << endl;
16 bufferptr p3 = new buffer("abcdef",6);
18 cout << "p3 is " << p3 << endl;
25 cout << "bl is " << bl << endl;
27 cout << "len is " << bl.length() << endl;
30 bl.splice(10,4,&took);
32 cout << "took out " << took << "leftover is " << bl << endl;
33 //cout << "len is " << bl.length() << endl;
36 bl2.substr_of(bl, 3, 5);
37 cout << "bl2 is " << bl2 << endl;