Searched refs:levelOffset (Results 1 – 1 of 1) sorted by relevance
150 int[] levelOffset = calculateLevelOffset(fileSource.size(), digestSize); in generateVerityTree() local152 ByteBuffer verityBuffer = ByteBuffer.allocate(levelOffset[levelOffset.length - 1]); in generateVerityTree()155 for (int i = levelOffset.length - 2; i >= 0; i--) { in generateVerityTree()157 slice(verityBuffer, levelOffset[i], levelOffset[i + 1])); in generateVerityTree()159 if (i == levelOffset.length - 2) { in generateVerityTree()164 levelOffset[i + 1], levelOffset[i + 2])); in generateVerityTree()207 int[] levelOffset = new int[levelSize.size() + 1]; in calculateLevelOffset() local208 levelOffset[0] = 0; in calculateLevelOffset()211 levelOffset[i + 1] = levelOffset[i] + Math.toIntExact( in calculateLevelOffset()214 return levelOffset; in calculateLevelOffset()