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

Converts Src to packed bit storage.

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

Returns the result of bit packing the Src values [SrcIndex]..[SrcIndex+Len-1] and stored in the calling object bits from [0]..[0+Len-1]. If Len is not divisable with 32, the remaining bits in the last sample are left at 0. The storage precision of the calling object is set to prInt32. The size of the calling object is adjusted automatically.

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