TSparseMtx::ReadValues Method

virtual long long ReadValues(DewStream *Src, TPrecision Precision, TEndianness Endian = MtxSystemEndianness);

Read values content from stream to object.

#NameTypeDescription
1SrcDewStream *
2PrecisionTPrecision
3Endian = MtxSystemEndiannessTEndianness
Remarks:

Reads values content from SrcStream stream to calling objct. No other values describing the data type or length are read from the DstStream. Number type is defined by the Precision parameter, which can be obtained from TSparseMtx::ReadHeader method call. The function returns the number of bytes read.

Note
Use this method separately only, if you want user defined storage format.

Examples
#include "MtxVec.h"
#include "Units.MtxVec.h"

using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Math::Units::MtxVec;

void Example()
{
    TVec* b;
    FileStream* AStream;
    TPrecision Precision;

    CreateIt(b);
    AStream = new FileStream("airpass.vec", FileMode::Open);
    Precision = b->ReadHeader(AStream); // Read info for b
    b->ReadValues(AStream, Precision); // Read values of b
    delete AStream;
    FreeIt(b);
}
See Also: TSparseMtx::ReadHeader, TSparseMtx::WriteValues, TMtxVecBase::LoadFromStream
Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler