+size_t GrowingBuffer::indexOf(char c, size_t start) {
+ void* foundIndex;
+
+ foundIndex = memchr((ptrdiff_t*) data + position + start, c, (limit - start));
+ if (foundIndex) {
+ return (ptrdiff_t) foundIndex - ((ptrdiff_t) data + position);
+ }
+ return -1;
+}
+