Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function BitUnpack(const Src: TMtxInt; const DstPrecision: TIntPrecision): TMtxInt; | Converts Src to packed bit storage. |
| 2 | function BitUnpack(const Src: TMtxVecInt; SrcIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt; | Converts Src to unpacked bit storage. |
Overload 1: function BitUnpack(const Src: TMtxInt; const DstPrecision: TIntPrecision): TMtxInt;
Converts Src to packed bit storage.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxInt | |
| 2 | DstPrecision | TIntPrecision |
Result: stored in self (calling object), returns self for chaining
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.
Overload 2: function BitUnpack(const Src: TMtxVecInt; SrcIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;
Converts Src to unpacked bit storage.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVecInt | |
| 2 | SrcIndex | Integer | source start index |
| 3 | Index | Integer | start index |
| 4 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
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.