Lines Matching full:an
33 An evbuffer can be used for preparing data before sending it to
67 As the contents of an evbuffer can be stored in multiple different
92 An evbuffer is an opaque data type for efficiently buffering data to be
104 Pointer to a position within an evbuffer.
111 An evbuffer_ptr can represent any position from the start of a buffer up
127 /** Describes a single extent of memory inside an evbuffer. Used for
148 @return a pointer to a newly allocated evbuffer struct, or NULL if an error
154 Deallocate storage for an evbuffer.
162 Enable locking on an evbuffer so that it can safely be used by multiple
169 @param buf An evbuffer to make lockable.
177 Acquire the lock on an evbuffer. Has no effect if locking was not enabled
184 Release the lock on an evbuffer. Has no effect if locking was not enabled
208 /** Change the flags that are set for an evbuffer by adding more.
217 /** Change the flags that are set for an evbuffer by removing some.
252 Expands the available space in an evbuffer.
259 @return 0 if successful, or -1 if an error occurred
265 Reserves space in the last chain or chains of an evbuffer.
267 Makes space available in the last chain or chains of an evbuffer that can
273 an initial pointer and a length. You can force the memory to be
280 It is an error to do anything that moves around the buffer's internal
290 @param vec an array of one or more evbuffer_iovec structures to
308 This function may return an error if the pointer in the extents do
328 Append data to the end of an evbuffer.
340 Read data from an evbuffer and drain the bytes read.
354 Read data from an evbuffer, and leave the buffer unchanged.
368 Read data from the middle of an evbuffer, and leave the buffer unchanged.
383 Read data from an evbuffer into another evbuffer, draining
402 /** Any sequence of CR and LF characters is acceptable as an
408 * the network and later read an LF from the network, it will
412 /** An EOL is an LF, optionally preceded by a CR. This style is
415 /** An EOL is a CR followed by an LF. */
417 /** An EOL is a LF. */
419 /** An EOL is a NUL character (that is, a single byte with value 0) */
424 * Read a single line from an evbuffer.
426 * Reads a line terminated by an EOL as determined by the evbuffer_eol_style
435 * @return pointer to a single line, or NULL if an error occurred
449 @return 0 if successful, or -1 if an error occurred
467 @return 0 if successful, or -1 if an error occurred
474 A cleanup function for a piece of memory added to an evbuffer by
483 Reference memory into an evbuffer without copying.
495 @return 0 if successful, or -1 if an error occurred
523 @return 0 if successful, or -1 if an error occurred
531 An evbuffer_file_segment holds a reference to a range of a file --
532 possibly the whole file! -- for use in writing from an evbuffer to a
570 A cleanup function for a evbuffer_file_segment added to an evbuffer
578 file and sending it out via an evbuffer.
587 function that reads bytes from an evbuffer on any evbuffer containing
591 @param fd an open file to read from.
592 @param offset an index within the file at which to start reading
603 Free an evbuffer_file_segment
613 Add cleanup callback and argument for the callback to an
624 Insert some or all of an evbuffer_file_segment at the end of an evbuffer
630 segment to an evbuffer, the offset is _within the segment_ and the
633 In other words, if you have a 10 KiB file, and you create an
636 evbuffer_add_file_segment and specify an offset of 20 and a length of
650 Append a formatted string to the end of an evbuffer.
657 @return The number of bytes added if successful, or -1 if an error occurred.
669 Append a va_list formatted string to the end of an evbuffer.
674 @return The number of bytes added if successful, or -1 if an error occurred.
685 Remove a specified number of bytes data from the beginning of an evbuffer.
696 Write the contents of an evbuffer to a file descriptor.
702 @return the number of bytes written, or -1 if an error occurred
709 Write some of the contents of an evbuffer to a file descriptor.
717 @return the number of bytes written, or -1 if an error occurred
725 Read from a file descriptor and store the result in an evbuffer.
731 @return the number of bytes read, or -1 if an error occurred
738 Search for a string within an evbuffer.
752 Search for a string within part of an evbuffer.
769 Defines how to adjust an evbuffer_ptr by evbuffer_ptr_set()
773 /** Sets the pointer to the position; can be called on with an
792 An evbuffer_ptr can represent any position from the start of the buffer to
807 Search for an end-of-line string within an evbuffer.
825 /** Function to peek at data inside an evbuffer without removing it or
841 @param start_at an evbuffer_ptr indicating the point at which we
844 @param vec_out an array of evbuffer_iovec
859 /** Structure passed to an evbuffer_cb_func evbuffer callback
874 removed from an evbuffer.
876 An evbuffer may have one or more callbacks set at a time. The order
885 other callbacks. If you ask for an infinite loop, you might just get
895 /** Add a new callback to an evbuffer.
903 @param cbarg an argument to be provided to the callback function
909 /** Remove a callback from an evbuffer, given a handle returned from
921 /** Remove a callback from an evbuffer, given the function and argument
984 Makes the data at the beginning of an evbuffer contiguous.
1020 Prevent calls that modify an evbuffer from succeeding. A buffer may
1036 Re-enable calls that modify an evbuffer.
1048 Force all the callbacks on an evbuffer to be run, not immediately after
1058 Append data from 1 or more iovec's to an evbuffer
1060 Calculates the number of bytes needed for an iovec structure and guarantees