You are here: Symbol Reference > MtxVecInt Namespace > Classes > TMtxInt Class > public > TMtxInt.Adopt Method
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtxInt.Adopt Method

Adopts a pointer to one dimensional array.

Pascal
procedure Adopt(const AArray: PAPointer; const ARows: integer; const ACols: integer; const aIntPrecision: TIntPrecision);

Adopts a pointer to AArray array. The method sets the calling matrix IntPrecision property to prInt32, Rows to ARows, Cols to ACols and Values1D and CValues1D to Pointer(AArray).

You must call the Disown method, before you destroy the matrix. Use this method to save a copy operation. You should be very careful never to resize the calling matrix while it contains the adopted memory or call any routines that would require the matrix to reallocate the memory.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!