print values of this instance to stream
| C# | Visual Basic | Visual C++ |
public abstract void ToStream( Stream outStream, string format, ILArrayStreamSerializationFlags method )
Public MustOverride Sub ToStream ( _ outStream As Stream, _ format As String, _ method As ILArrayStreamSerializationFlags _ )
public: virtual void ToStream( Stream^ outStream, String^ format, ILArrayStreamSerializationFlags method ) abstract
- outStream (Stream)
- Stream to write the values into
- format (String)
- Format string to be used for output. See Format(String, Object) for a specification of valid formating expressions. This flag is only used, when 'method' is set to 'Serial'
- method (ILArrayStreamSerializationFlags)
- a constant out of ILArrayStreamSerializationFlags. Specifies the way the values will be serialized.
If for method 'Formated' is used, any occourences of a NewLine character(s) will be replaced from the format string before applying to the elements. This is due to prevent the format from breaking the 'page' style for the output.
If 'method' is set to 'Matlab', the array will be written as Matfile version 5.0. No compression will be used. The internal 'Name' property will be used as array name for writing. This array instance will be the only array in the mat file. If you want to write several arrays bundled into one mat file, use the MatFile class to create a collection of arrays and write the MatFile to stream than.