summaryrefslogtreecommitdiff
path: root/src/raptor_iostream.c
Commit message (Collapse)AuthorAgeFilesLines
* Initialising possibly using uninitialised varsDave Beckett2004-12-171-1/+1
|
* Casts for c++Dave Beckett2004-12-171-2/+2
|
* (raptor_iostream_write_stringbuffer) AddedDave Beckett2004-11-261-0/+25
|
* (raptor_string_iostream_finish): Code tidy.Dave Beckett2004-10-241-4/+3
|
* s/fh/handle/ for clarity.Dave Beckett2004-10-231-17/+19
|
* (raptor_new_iostream_to_string): Docs, zap string and length beforeDave Beckett2004-10-211-1/+7
| | | | starting.
* (raptor_string_iostream_finish): Use passed-in malloc_handler toDave Beckett2004-10-191-4/+15
| | | | | | | make string, raptor_stringbuffer_copy_to_string to copy directly in. (raptor_new_iostream_to_string): Add optional malloc_handler argument so caller can control allocation. (main): Update tests for above.
* castDave Beckett2004-10-191-1/+1
|
* Casts for C++Dave Beckett2004-10-191-3/+3
|
* (main) casts for fprintfDave Beckett2004-10-181-2/+2
|
* (raptor_iostream_write_counted_string): Added as a wrapper.Dave Beckett2004-10-181-0/+15
|
* (raptor_iostream_format_hexadecimal): Added for writingDave Beckett2004-10-181-1/+41
| | | | field-formatted hex.
* (raptor_iostream_get_bytes_written_count): Renamed fromDave Beckett2004-10-181-3/+43
| | | | | | raptor_get_bytes_written_count (raptor_iostream_write_decimal): Added to print a decimal to the iostream.
* (raptor_new_iostream_to_file_handle): Do not fclose at end.Dave Beckett2004-10-181-1/+20
| | | | | (raptor_string_iostream_finish): Free malloced context. (raptor_iostream_write_string): Helper to write C string.
* Added sink iostreamDave Beckett2004-10-181-1/+56
| | | | | | | | | (raptor_sink_iostream_write_byte, raptor_sink_iostream_write_bytes): Added. (raptor_new_iostream_to_sink): Added to create a throwaway data iostream. (raptor_free_iostream): Ensure write_end is always called once only. (main): Test sink.
* Added ended flag, once write_end is done, all further calls fail.Dave Beckett2004-10-181-48/+73
| | | | | | | | | | (raptor_filename_iostream_finish): Removed; write_end does this. (raptor_filename_iostream_write_end): Added to fclose() on end (raptor_string_iostream_finish): More checks when stringbuffer is empty. (raptor_new_iostream_to_string): Handle error tidy up better. (raptor_iostream_write_end): Added. (main): Code tidy.
* casts for c++Dave Beckett2004-10-181-3/+3
|
* Raptor I/O stream classDave Beckett2004-10-181-0/+482