Skip to content

๐Ÿ—‚๏ธ I index content (iic) is a content indexer using paging

License

Notifications You must be signed in to change notification settings

Neotoxic-off/iic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

15 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

iic

๐Ÿ—‚๏ธ I index content (iic) is a content indexer using paging

Example

let content: Vec<u8> = vec![0; 100];
let table: Table = index(&content, 10);

for page in &table.pages {
    assert_eq!(page.content.len(), 10);
}

assert_eq!(table.pages.len(), 10);

for page in &table.pages {
    assert_eq!(page.content.len(), 10);
}
let content: Vec<u8> = vec![0; 1];
let table: Table = index(&content, 10);
let address: usize = &content[0] as *const u8 as usize;

assert_eq!(search(table, address).is_some(), true);

About

๐Ÿ—‚๏ธ I index content (iic) is a content indexer using paging

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages