stringat.cc (225B)
1 #include "netbuffer" 2 3 string Netbuffer::stringat(unsigned index, unsigned len) { 4 string ret; 5 for (unsigned i = index; i < index + len; i++) { 6 if (i >= buf_sz) 7 break; 8 ret += buf_data[i]; 9 } 10 return ret; 11 }
crossroadsGit mirror of https://crossroads.e-tunity.com/ | |
| git clone git://git.finwo.net/app/crossroads | |
| Log | Files | Refs | LICENSE |