Home | History | Annotate | Download | only in common

Lines Matching refs:buffer

41     CharString() : len(0) { buffer[0]=0; }
43 buffer[0]=0;
47 buffer[0]=0;
51 buffer[0]=0;
66 char operator[](int32_t index) const { return buffer[index]; }
67 StringPiece toStringPiece() const { return StringPiece(buffer.getAlias(), len); }
69 const char *data() const { return buffer.getAlias(); }
70 char *data() { return buffer.getAlias(); }
72 CharString &clear() { len=0; buffer[0]=0; return *this; }
84 * Returns a writable buffer for appending and writes the buffer's capacity to
89 * The returned buffer is only valid until the next write operation
95 * @param minCapacity required minimum capacity of the returned buffer;
97 * @param desiredCapacityHint desired capacity of the returned buffer;
99 * @param resultCapacity will be set to the capacity of the returned buffer
101 * @return a buffer with resultCapacity>=min_capacity
118 MaybeStackArray<char, 40> buffer;