Lines Matching defs:buffer
43 CharString() : len(0) { buffer[0]=0; }
45 buffer[0]=0;
49 buffer[0]=0;
53 buffer[0]=0;
68 char operator[](int32_t index) const { return buffer[index]; }
69 StringPiece toStringPiece() const { return StringPiece(buffer.getAlias(), len); }
71 const char *data() const { return buffer.getAlias(); }
72 char *data() { return buffer.getAlias(); }
77 CharString &clear() { len=0; buffer[0]=0; return *this; }
89 * Returns a writable buffer for appending and writes the buffer's capacity to
94 * The returned buffer is only valid until the next write operation
100 * @param minCapacity required minimum capacity of the returned buffer;
102 * @param desiredCapacityHint desired capacity of the returned buffer;
104 * @param resultCapacity will be set to the capacity of the returned buffer
106 * @return a buffer with resultCapacity>=min_capacity
129 MaybeStackArray<char, 40> buffer;