Newer
Older
//
// Created by Jake Close on 3/13/18.
//
jsclose
committed
#include "ISRWord.h"
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
void ISRWord::getChunks()
{
//Memory map master index file
//Binary search thru memory map until you find word
//Get list of chunks that you need
//set current chunk
}
Location ISRWord::First()
{
//Go to current chunk
//Look in seek dictionary for chunk (mem map, binary search)
//Have offset into chunk, find post seek to post, return value
//update ISR currentLocation
//set current memory map
//returns offset into corpus
}
//returns next absolute location in corpus
Location ISRWord::Next()
{
//looks at memory map
//if new line ( end of current list for that file
//move to next chunk, update chunk
//find new offset, return first location
//else
//find way to increment to next delta
//return new location
}
Location ISRWord::Seek( Location target )
{
//look thru each chunk
//check if absolute position at offset in chunk is less then chunk,
//check seek lookup table to find if offset+absulte is bigger than target
//if so, set location to that big chunk
//go to next chunk
}