Lines Matching refs:buffer
43 CharString() : len(0) { buffer[0]=0; }
45 buffer[0]=0;
49 buffer[0]=0;
53 buffer[0]=0;
80 char operator[](int32_t index) const { return buffer[index]; }
81 StringPiece toStringPiece() const { return StringPiece(buffer.getAlias(), len); }
83 const char *data() const { return buffer.getAlias(); }
84 char *data() { return buffer.getAlias(); }
100 * @param dest Destination string buffer.
101 * @param capacity Size of the dest buffer (number of chars).
119 CharString &clear() { len=0; buffer[0]=0; return *this; }
134 * Returns a writable buffer for appending and writes the buffer's capacity to
139 * The returned buffer is only valid until the next write operation
145 * @param minCapacity required minimum capacity of the returned buffer;
147 * @param desiredCapacityHint desired capacity of the returned buffer;
149 * @param resultCapacity will be set to the capacity of the returned buffer
151 * @return a buffer with resultCapacity>=min_capacity
175 MaybeStackArray<char, 40> buffer;