You are here: Symbol Reference > AbstractMtxVecInt Namespace > Classes > TMtxVecInt Class > public > TMtxVecInt.BitUnpack Method
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtxVecInt.BitUnpack Method

Converts Src to unpacked bit storage.

Pascal
function BitUnpack(const Src: TMtxVecInt; SrcIndex: integer; Index: integer; Len: integer): TMtxVecInt; overload;

If bit at Src[i] <> 0 then Integer (32, 16 or 8bit) at index "i" in the calling vector is set to 1. Returns the result of bit unpacking the bits stored in Src values [SrcIndex]..[SrcIndex + Len - 1] and stored in the calling object (Self) values [Index]..[Index+Len-1]. The storage precision of the calling object is preserved. The Len parameter specifies the number of bits that will be unpacked from Src.

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