MatrixInt::WriteHeader Method

void WriteHeader(DewStream *DstStream, const TPrecision aPrecision = TPrecision::prInteger) const;

Writes the header information for the calling vector to a stream.

#NameTypeDescription
1DstStreamDewStream *
2aPrecision = TPrecision::prIntegerconst TPrecision
Remarks:

Writes the header information for the calling object to a DstStream stream. The header information contains information about object (size, type of values in Values array, ...) which all define the state of the object. Number type is defined by the Precision parameter. Attempt to save single precision or double precision will raise an exception.

Examples
#include "MtxExprInt.h"
#include "DewStream.h"

using namespace Dew;
using namespace Dew::Math;

void Example()
{
    MatrixInt b;
    FileStream* AStream;

    b = {{0, 1}, {3, 2}};
    AStream = new FileStream("test.bin", FileMode::Create);
    b.WriteHeader(AStream); // Write info for b
    b.WriteValues(AStream); // Write values of b
    delete AStream;
}
See Also: MatrixInt::ReadHeader, MatrixInt::WriteValues, MatrixInt::WriteValues
Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler