ACE_Read_Buffer Class ReferenceEfficiently reads an artibrarily large buffer from an input stream up to and including a termination character. Also performs search/replace on single occurrences a character in the buffer using the principles of Integrated Layer Processing. More...
Collaboration diagram for ACE_Read_Buffer:
![]()
Detailed DescriptionEfficiently reads an artibrarily large buffer from an input stream up to and including a termination character. Also performs search/replace on single occurrences a character in the buffer using the principles of Integrated Layer Processing.This implementation is optimized to do a single dynamic allocation and make only one copy of the data. It uses recursion and the run-time stack to accomplish this efficiently. Constructor & Destructor Documentation
Read from a FILE *.
Read from an open HANDLE.
Closes the FILE *.
Member Function Documentation
Returns a pointer dynamically allocated with ACE_Allocator::malloc to data from the input stream up to (and including) the terminator. If search is >= 0 then all occurrences of the search value are substituted with the replace value. The last of the byte of data is a 0, so that
Returns the number of characters replaced during a
Returns the size of the allocated buffer obtained during a
Returns a pointer to its allocator.
Dump the state of the object.
Recursive helper method that does the work...
Member Data Documentation
The total number of characters in the buffer.
The total number of characters replaced.
The stream we are reading from.
Keeps track of whether we should close the FILE in the destructor.
Pointer to the allocator.
The documentation for this class was generated from the following files: Generated on Mon Sep 15 07:16:23 2008 for ACE by ![]() |