MCPcopy Create free account
hub / github.com/emoose/xbox-reversing / StfsGetDataBlockChain

Method StfsGetDataBlockChain

stfschk/StfsFileSystem.cs:637–650  ·  view source on GitHub ↗
(int BlockNumber, int limit = -1)

Source from the content-addressed store, hash-verified

635 }
636
637 public int[] StfsGetDataBlockChain(int BlockNumber, int limit = -1)
638 {
639 var blockList = new List<int>();
640 while (BlockNumber != 0xFFFFFF)
641 {
642 if (limit != -1 && blockList.Count > limit)
643 break;
644
645 blockList.Add(BlockNumber);
646 var hashEntry = StfsGetLevel0HashEntry(BlockNumber);
647 BlockNumber = hashEntry.Level0NextBlock;
648 }
649 return blockList.ToArray();
650 }
651
652 // Info about a file stored inside the STFS image
653 public class FileEntry

Callers 2

ProcessFileMethod · 0.80
ReadBytesMethod · 0.80

Calls 1

AddMethod · 0.80

Tested by

no test coverage detected