littlefs-rust-core 0.1.0

Port of LittleFS to unsafe rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Lookahead buffer. Per lfs.h struct lfs_lookahead.

use crate::types::lfs_block_t;

/// Per lfs.h struct lfs_lookahead
#[repr(C)]
pub struct LfsLookahead {
    pub start: lfs_block_t,
    pub size: lfs_block_t,
    pub next: lfs_block_t,
    pub ckpoint: lfs_block_t,
    pub buffer: *mut u8,
}