Skip to content

Commit 62a56e4

Browse files
MagicalTuxclaude
andcommitted
refactor: extract helper functions and simplify buildInodeTableToBuffer
Significantly improved code organization and maintainability: - Extracted 11 helper functions from buildInodeTableToBuffer - Reduced buildInodeTableToBuffer from 442 to ~115 lines (73% reduction) - Eliminated code duplication between Pass 2 and Pass 4 - Added inodePosition and directoryChunk type definitions - Enhanced documentation for Writer, writerInode, and Finalize - Improved clarity with well-named extraction functions: - computeInodePositions, computeBlockPositions - buildDirectoryEntryData, buildDirectoryDataForAllInodes - serializeInodesToBuffer, writeCompressedMetadataBlock - simulateDirectoryIndices, rebuildDirectoryDataWithBlockPositions All tests pass. No functional changes - purely refactoring. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 7847f39 commit 62a56e4

1 file changed

Lines changed: 475 additions & 357 deletions

File tree

0 commit comments

Comments
 (0)