VectorInt::BitUnpack Method

Overload List

#SignatureDescription
1TVecInt *BitUnpack(TVecInt *Src, TIntPrecision DstPrecision = TIntPrecision::prInt32) const;Converts Src to packed bit storage.
2TMtxVecInt *BitUnpack(TMtxVecInt *Src, int SrcIndex, int Index, int Len) const;Converts Src to unpacked bit storage.

Overload 1: TVecInt *BitUnpack(TVecInt *Src, TIntPrecision DstPrecision = TIntPrecision::prInt32) const;

Converts Src to packed bit storage.

#NameTypeDescription
1SrcTVecInt *
2DstPrecision = TIntPrecision::prInt32TIntPrecision
Remarks:

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.

Declared in Dew::Math::VectorInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 2: TMtxVecInt *BitUnpack(TMtxVecInt *Src, int SrcIndex, int Index, int Len) const;

Converts Src to unpacked bit storage.

#NameTypeDescription
1SrcTMtxVecInt *
2SrcIndexint
3Indexint
4Lenint
Remarks:

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 stred Src values [0]..[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. Unpack to array with precision other than Int32 is 8x slower.

Declared in Dew::Math::VectorInt · Dew.Math/MtxExprInt.h · Cross-compiler