Lines Matching refs:bytes
7 // Abstract interface that consumes a sequence of bytes (ByteSink).
35 * \brief C++ API: Interface for writing bytes, and implementation classes.
45 * A ByteSink can be filled with bytes.
62 * Append "bytes[0,n-1]" to this.
63 * @param bytes the pointer to the bytes
64 * @param n the number of bytes; must be non-negative
67 virtual void Append(const char* bytes, int32_t n) = 0;
77 * After writing at most *result_capacity bytes, call Append() with the
78 * pointer returned from this function and the number of bytes written.
79 * Many Append() implementations will avoid copying bytes if this function
85 * ... Write n bytes into buffer, with n <= capacity.
87 * In many implementations, that call to Append will avoid copying bytes.
136 * This sink will not write more than capacity bytes to outbuf.
137 * If more than capacity bytes are Append()ed, then excess bytes are ignored,
152 * Append "bytes[0,n-1]" to this.
153 * @param bytes the pointer to the bytes
154 * @param n the number of bytes; must be non-negative
157 virtual void Append(const char* bytes, int32_t n);
177 * Returns the number of bytes actually written to the sink.
178 * @return number of bytes written to the buffer
183 * Returns true if any bytes were discarded, i.e., if there was an
184 * attempt to write more than 'capacity' bytes.
185 * @return TRUE if more than 'capacity' bytes were Append()ed
210 * Constructs a ByteSink that will append bytes to the dest string.
216 * Append "bytes[0,n-1]" to this.
217 * @param data the pointer to the bytes
218 * @param n the number of bytes; must be non-negative