Vector.Disown Method

Overload List

#SignatureDescription
1procedure Disown;Disowns a calling vector values pointer by setting Values, CValues to nil and TMtxVecBase.Length to 0.
2procedure Disown(out aArray: TSingleArray; out aIndex: Integer; out ALength: Integer; out aIsComplex: Boolean);Disowns a values pointer.

Overload 1: procedure Disown;

Disowns a calling vector values pointer by setting Values, CValues to nil and TMtxVecBase.Length to 0.

Result: stored in self (calling object)

Overload 2: procedure Disown(out aArray: TSingleArray; out aIndex: Integer; out ALength: Integer; out aIsComplex: Boolean);

Disowns a values pointer.

#NameTypeDescription
1aArrayTSingleArray
2aIndexInteger
3ALengthInteger
4aIsComplexBoolean

Result: stored in self (calling object)

Remarks:

Disowns a values pointer. The Disown method is the opposite of the Vector.Adopt method. It will set the AArrays to Pointer(Values), ALength to vector's TMtxVecBase.Length and IsComplex to TMtxVec.Complex property. Use the Disown method to "disconnect" AArray from the TVec.Values. Disown sets Values and CValues array pointers to nil and Length property to zero, but without freeing the allocated memory. The allocated memory can be disowned only, if it was adopted with a call to the Vector.Adopt method.

See Also: Vector.Adopt