Lines Matching defs:entryCount

32 	inline	size_t				BytesUsedFor(int32 entryCount) const;
170 return fBlock->entryCount;
175 DirEntryBlock::BytesUsedFor(int32 entryCount) const
177 if (entryCount == 0)
179 return sizeof(*fBlock) + 10 * entryCount
180 + fBlock->nameEnds[entryCount - 1];
210 int32 entryCount = EntryCount();
211 if (index < 0 || index >= entryCount)
216 return (const char*)(fBlock->nameEnds + entryCount) + nameOffset;
224 int32 entryCount = EntryCount();
225 if (entryCount == 0) {
230 const char* entryNames = (char*)(fBlock->nameEnds + entryCount);
237 for (; index < entryCount; index++) {
261 int32 entryCount = EntryCount();
262 for (int32 i = 0; i < entryCount; i++) {
271 return entryCount;
280 int32 entryCount = fBlock->entryCount;
281 char* entryNames = (char*)(fBlock->nameEnds + entryCount);
284 uint32 lastNameEnd = entryCount == 0
285 ? 0 : fBlock->nameEnds[entryCount - 1];
287 if (index < entryCount) {
289 memmove(&blockIndices[-entryCount], &blockIndices[1 - entryCount],
290 8 * (entryCount - index));
302 for (int32 i = entryCount; i > index; i--)
304 } else if (entryCount > 0) {
314 fBlock->entryCount++;
323 int32 entryCount = fBlock->entryCount;
324 char* entryNames = (char*)(fBlock->nameEnds + entryCount);
326 ASSERT(index >= 0 && index < entryCount);
330 uint32 lastNameEnd = fBlock->nameEnds[entryCount - 1];
338 if (index + 1 < entryCount) {
345 for (int32 i = index; i < entryCount; i++)
360 int32 entryCount = EntryCount();
361 if (entryCount == 1) {
363 fBlock->entryCount = 0;
368 char* entryNames = (char*)(fBlock->nameEnds + entryCount);
372 uint32 lastNameEnd = entryCount == 0
373 ? 0 : fBlock->nameEnds[entryCount - 1];
375 if (index < entryCount - 1) {
379 memmove(&blockIndices[-entryCount + 2], &blockIndices[-entryCount + 1],
380 8 * (entryCount - index - 1));
383 for (int32 i = index + 1; i < entryCount; i++)
399 fBlock->entryCount--;
413 int32 entryCount = EntryCount();
414 if (splitIndex == entryCount)
416 int32 otherEntryCount = entryCount - splitIndex;
423 memcpy(otherBlockIndices - otherEntryCount, blockIndices - entryCount,
429 for (int32 i = splitIndex; i < entryCount; i++) {
435 char* entryNames = (char*)(fBlock->nameEnds + entryCount);
439 fBlock->nameEnds[entryCount - 1] - namesOffset);
448 fBlock->entryCount = splitIndex;
449 other.fBlock->entryCount = otherEntryCount;
458 int32 entryCount = EntryCount();
459 if (entryCount == 0)
464 size_t size = sizeof(*fBlock) + entryCount * 10;
465 if (size + entryCount > fBlockSize) {
468 "\n", (int)entryCount, size, (int)entryCount, fBlockSize);
473 const char* entryNames = (char*)(fBlock->nameEnds + entryCount);
479 for (int32 i = 0; i < entryCount; i++) {
1453 uint32 entryCount = entryBlock.EntryCount();
1454 if (entryCount == 0) {
1480 for (uint32 i = 0; i < entryCount; i++) {