pub fn index(data: &[u8]) -> Result<Index, String>
Index the DataFlash log in data: one pass, start to end.
data