Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function BitPack(const Src: TMtxInt): TMtxInt; | Packs integer storage matrix to bit storage. |
| 2 | function BitPack(const Src: TMtxVecInt; const SrcIndex: Integer; const Index: Integer; Len: Integer): TMtxVecInt; | Converts Src to packed bit storage. |
Overload 1: function BitPack(const Src: TMtxInt): TMtxInt;
Packs integer storage matrix to bit storage.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxInt | source TMtxInt |
Result: stored in self (calling object), returns self for chaining
Remarks:
All elements are checked only, if they are zero or not.
Overload 2: function BitPack(const Src: TMtxVecInt; const SrcIndex: Integer; const Index: Integer; Len: Integer): TMtxVecInt;
Converts Src to packed bit storage.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVecInt | source TVecInt or TMtxInt |
| 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
Remarks:
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.