public ReadOnlySpan <ApiHostBlocks> ReadHostBlocks(FS.FolderPath root) { var flow = Wf.Running(string.Format("Loading host blocks from {0}", root)); var files = Files(root).View; var count = files.Length; var dst = list <ApiHostBlocks>(); var counter = 0u; for (var i = 0; i < count; i++) { ref readonly var file = ref skip(files, i);
public Index <ApiHostBlocks> ReadHostBlocks(FS.FolderPath root, ReadOnlySpan <ApiHostUri> src) { var count = src.Length; var dst = list <ApiHostBlocks>(); for (var i = 0; i < count; i++) { dst.Add(ReadBlocks(root, skip(src, i))); } return(dst.ToArray()); }
public FileSplitSpec(FS.FilePath src, Count maxlines, FS.FolderPath dst) { SourceFile = src; MaxLineCount = maxlines; TargetFolder = dst; }
public IApiPack Create(FS.FolderPath root) => new ApiPack(ApiPackSettings.init(root));
protected override void OnInit() { Root = Db.ParsedExtractRoot(); }
public ApiCodeBlocks ReadBlocks(FS.FolderPath root) => ReadBlocks(Db.ParsedExtractPaths(root));
public FS.FolderPath HexRoot(FS.FolderPath root) => Db.ParsedExtractRoot(root);
public FS.Files Files(FS.FolderPath root) => HexRoot(root).Files(FS.PCsv);
public FS.FilePath ThumbprintPath(FS.FolderPath dst) => dst + FS.file("asm.thumbprints", FS.Asm);
public ApiPackArchive(FS.FolderPath root) { Root = root; }
public static ApiPackArchive create(FS.FolderPath root) => new ApiPackArchive(root);
public ReadOnlySpan <ProcessSegment> LocateSegments(AddressBank src, ReadOnlySpan <ApiMemberInfo> methods, FS.FolderPath dir) { var count = methods.Length; var flow = Wf.Running(Msg.LocatingSegments.Format(count)); var buffer = sys.alloc <MethodSegment>(count); var locations = root.hashset <ProcessSegment>(); var segments = src.Segments; ref var dst = ref first(buffer);
public Lookup <FS.FilePath, HexPack> LoadParsed(FS.FolderPath root) => Load(root.Files(".parsed", FS.XPack, true));