MtxVecUtils.WriteBinaryValues Method

Overload List

#SignatureDescription
1procedure WriteBinaryValues(DstStream: TByteArray; StreamIndex: Integer; Values: TDoubleArray; ValuesIndex: Integer; Precision: TPrecision; Rounding: TRounding; Endian: TEndianness; Length: Integer);The destination is a pointer to memory, which will hold Length elements stored with Precision.
2procedure WriteBinaryValues(DstStream: TByteArray; StreamIndex: Integer; Values: TSingleArray; ValuesIndex: Integer; Precision: TPrecision; Rounding: TRounding; Endian: TEndianness; Length: Integer);The destination is a pointer to memory, which will hold Length elements stored with Precision.
3procedure WriteBinaryValues(DstStream: TStream; Values: TDoubleArray; ValuesIndex: Integer; Precision: TPrecision; Rounding: TRounding; Endian: TEndianness; Length: Integer);Writes double values to stream and converts to specified type.
4procedure WriteBinaryValues(DstStream: TStream; Values: TSingleArray; ValuesIndex: Integer; Precision: TPrecision; Rounding: TRounding; Endian: TEndianness; Length: Integer);Writes single precision values to stream and converts to specified type.
5procedure WriteBinaryValues(DstStream: NativeInt; Values: TDoubleArray; ValuesIndex: Integer; Precision: TPrecision; Rounding: TRounding; Endian: TEndianness; Length: Integer);
6procedure WriteBinaryValues(DstStream: NativeInt; Values: TSingleArray; ValuesIndex: Integer; Precision: TPrecision; Rounding: TRounding; Endian: TEndianness; Length: Integer);

Overload 1: procedure WriteBinaryValues(DstStream: TByteArray; StreamIndex: Integer; Values: TDoubleArray; ValuesIndex: Integer; Precision: TPrecision; Rounding: TRounding; Endian: TEndianness; Length: Integer);

The destination is a pointer to memory, which will hold Length elements stored with Precision.

#NameTypeDescription
1DstStreamTByteArray
2StreamIndexInteger
3ValuesTDoubleArray
4ValuesIndexInteger
5PrecisionTPrecision
6RoundingTRounding
7EndianTEndianness
8LengthInteger

Result: stored in self (calling object)

Overload 2: procedure WriteBinaryValues(DstStream: TByteArray; StreamIndex: Integer; Values: TSingleArray; ValuesIndex: Integer; Precision: TPrecision; Rounding: TRounding; Endian: TEndianness; Length: Integer);

The destination is a pointer to memory, which will hold Length elements stored with Precision.

#NameTypeDescription
1DstStreamTByteArray
2StreamIndexInteger
3ValuesTSingleArray
4ValuesIndexInteger
5PrecisionTPrecision
6RoundingTRounding
7EndianTEndianness
8LengthInteger

Result: stored in self (calling object)

Overload 3: procedure WriteBinaryValues(DstStream: TStream; Values: TDoubleArray; ValuesIndex: Integer; Precision: TPrecision; Rounding: TRounding; Endian: TEndianness; Length: Integer);

Writes double values to stream and converts to specified type.

#NameTypeDescription
1DstStreamStream
2ValuesTDoubleArray
3ValuesIndexInteger
4PrecisionTPrecision
5RoundingTRounding
6EndianTEndianness
7LengthInteger

Result: stored in self (calling object)

Remarks:

Writes TSample values to stream and converts to specified type. The values from Values array will be converted to Precision type, using the Rounding specified and written to the Stream. The length of the Values arrays is defined with the Length and Complex parameters. If Complex is True, the length of the Values array must be two times bigger then the Value of the Length parameter.

See Also: MtxVecUtils.ReadBinaryValues

Overload 4: procedure WriteBinaryValues(DstStream: TStream; Values: TSingleArray; ValuesIndex: Integer; Precision: TPrecision; Rounding: TRounding; Endian: TEndianness; Length: Integer);

Writes single precision values to stream and converts to specified type.

#NameTypeDescription
1DstStreamStream
2ValuesTSingleArray
3ValuesIndexInteger
4PrecisionTPrecision
5RoundingTRounding
6EndianTEndianness
7LengthInteger

Result: stored in self (calling object)

Remarks:

Writes Tsingle precision values to stream and converts to specified type. The values from Values array will be converted to Precision type, using the Rounding specified and written to the Stream. The length of the Values arrays is defined with the Length and Complex parameters. If Complex is True, the length of the Values array must be two times bigger then the Value of the Length parameter.

See Also: MtxVecUtils.ReadBinaryValues

Overload 5: procedure WriteBinaryValues(DstStream: NativeInt; Values: TDoubleArray; ValuesIndex: Integer; Precision: TPrecision; Rounding: TRounding; Endian: TEndianness; Length: Integer);

#NameTypeDescription
1DstStreamNativeInt
2ValuesTDoubleArray
3ValuesIndexInteger
4PrecisionTPrecision
5RoundingTRounding
6EndianTEndianness
7LengthInteger

Result: stored in self (calling object)

Overload 6: procedure WriteBinaryValues(DstStream: NativeInt; Values: TSingleArray; ValuesIndex: Integer; Precision: TPrecision; Rounding: TRounding; Endian: TEndianness; Length: Integer);

#NameTypeDescription
1DstStreamNativeInt
2ValuesTSingleArray
3ValuesIndexInteger
4PrecisionTPrecision
5RoundingTRounding
6EndianTEndianness
7LengthInteger

Result: stored in self (calling object)