You are here: Symbol Reference > MtxExprInt Namespace > Classes > MatrixInt Record > public > BitUnpack Method > MatrixInt.BitUnpack Method (TMtxInt, TIntPrecision)
MtxVec VCL
ContentsIndex
PreviousUpNext
MatrixInt.BitUnpack Method (TMtxInt, TIntPrecision)

Converts Src to packed bit storage.

Pascal
function BitUnpack(const Src: TMtxInt; const dstPrecision: TIntPrecision = prInt32): TMtxInt; overload;

If bit at Src[i] <> 0 then Integer (32, 16 or 8bit) at index "i" in the calling vector is set to 1. The storage precision of the calling object is preserved. The size of the calling object is adjusted automatically. Unpack to array with precision other than Int32 is 8x slower.

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