SerializationHelpers.announceCompressedZeroBasedReflexiveIndices Function
Compress a 0-based blocked index array by removing block separators/pads and remapping each index.
- The entries of
sourceIndicesare reflexive indices, i.e., they indexsourceIndices. - The remapped index
jmust refer to the same block location in the compressed array to which the original indexi >= 0refers insourceIndices; thereforejis obtained fromiby subtracting the number of block separators/pads precedingsourceIndices[i].
announceCompressedZeroBasedReflexiveIndices(sourceIndices: Int32Array, numPerBlock: number, blockSeparator: number, nullValue: number, announceRemappedIndex: (i: number) => any): boolean
@returns true if and only if the mapping was successful.
Returns - boolean
true if and only if the mapping was successful.
Defined in
Last Updated: 24 October, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.