Show More
@@ -21,7 +21,7 b" impl<'a> Index<'a> {" | |||||
21 | let mut offset: usize = 0; |
|
21 | let mut offset: usize = 0; | |
22 | let mut offsets = Vec::new(); |
|
22 | let mut offsets = Vec::new(); | |
23 |
|
23 | |||
24 |
while |
|
24 | while offset + INDEX_ENTRY_SIZE <= bytes.len() { | |
25 | offsets.push(offset); |
|
25 | offsets.push(offset); | |
26 | let end = offset + INDEX_ENTRY_SIZE; |
|
26 | let end = offset + INDEX_ENTRY_SIZE; | |
27 | let entry = IndexEntry { |
|
27 | let entry = IndexEntry { |
General Comments 0
You need to be logged in to leave comments.
Login now