Lines Matching refs:buffer
106 class Buffer {
108 inline Buffer(Data data, unsigned length) : data_(data), length_(length) { }
109 inline Buffer() : data_(0), length_(0) { }
157 static const byte* ReadBlock(Buffer<const char*> str, byte* buffer,
193 static inline bool EncodeCharacter(uchar c, byte* buffer, unsigned capacity,
195 static inline bool EncodeAsciiCharacter(uchar c, byte* buffer,
197 static inline bool EncodeNonAsciiCharacter(uchar c, byte* buffer,
199 static inline uchar DecodeCharacter(const byte* buffer, unsigned* offset);
204 // The number of characters left in the current buffer
206 // The current offset within the buffer
208 // The buffer containing the decoded characters.
237 // To avoid heap allocation, we keep an internal buffer to which
240 // buffer or not.
247 class Utf8InputBuffer : public InputBuffer<Utf8, Buffer<const char*>, s> {
252 InputBuffer<Utf8, Buffer<const char*>, s>::Reset(
253 Buffer<const char*>(data, length));