Mercurial > octave-nkf
comparison libinterp/corefcn/file-io.cc @ 17416:6690dba6078a
improve efficiency of fwrite
* oct-stream.h, oct-stream.cc (write_int, do_write): Delete.
(convert_ints, convert_data, octave_stream::write_bytes
octave_stream::skip_bytes): New functions.
(octave_stream::write): Improve efficiency by writing data in larger
chunks.
* oct-stream.cc: Delete unnecessary template instantiations.
* data-conv.h, data-conv.cc (is_equivalent_type): New template.
Provide specializations for core Octave data types.
(oct_data_conv::data_type_size): New function.
(oct_data_conv::data_type_to_string): Correct spelling of unsigned.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 13 Sep 2013 23:31:11 -0400 |
parents | 3856298f1ff8 |
children | d63878346099 |
comparison
equal
deleted
inserted
replaced
17415:3856298f1ff8 | 17416:6690dba6078a |
---|---|
1554 \n\ | 1554 \n\ |
1555 @item \"ieee-le\"\n\ | 1555 @item \"ieee-le\"\n\ |
1556 IEEE little endian.\n\ | 1556 IEEE little endian.\n\ |
1557 @end table\n\ | 1557 @end table\n\ |
1558 \n\ | 1558 \n\ |
1559 @noindent\n\ | |
1560 Conversions are currently only supported for @qcode{\"ieee-be\"} and\n\ | |
1561 @qcode{\"ieee-le\"} formats.\n\ | |
1562 \n\ | |
1563 The data read from the file is returned in @var{val}, and the number of\n\ | 1559 The data read from the file is returned in @var{val}, and the number of\n\ |
1564 values read is returned in @code{count}\n\ | 1560 values read is returned in @code{count}\n\ |
1565 @seealso{fwrite, fgets, fgetl, fscanf, fopen}\n\ | 1561 @seealso{fwrite, fgets, fgetl, fscanf, fopen}\n\ |
1566 @end deftypefn") | 1562 @end deftypefn") |
1567 { | 1563 { |