1
0

debug read_usize

This commit is contained in:
Ishan Jain 2022-11-14 16:31:44 +05:30
parent dc7d7512a4
commit d7710ecdb5
2 changed files with 12 additions and 2 deletions

View File

@ -276,6 +276,8 @@ fn parse_page<'a>(
let record = parse_record(&stream[offset + 4..offset + 4 + payload_size], 2);
let record = record.unwrap();
println!("{:?}", record);
Some(
parse_page(
database,

View File

@ -68,7 +68,11 @@ impl<'a> ColumnValue<'a> {
ColumnValue::U16(v) => *v as u32,
ColumnValue::U24(v) => *v as u32,
ColumnValue::U32(v) => *v as u32,
_ => unreachable!(),
v => {
println!("{:?}", v);
unreachable!()
}
}
}
@ -80,7 +84,11 @@ impl<'a> ColumnValue<'a> {
ColumnValue::U32(v) => *v as usize,
ColumnValue::U48(v) => *v as usize,
ColumnValue::U64(v) => *v as usize,
_ => unreachable!(),
v => {
println!("{:?}", v);
unreachable!()
}
}
}
}