debug read_usize
This commit is contained in:
parent
dc7d7512a4
commit
d7710ecdb5
|
@ -276,6 +276,8 @@ fn parse_page<'a>(
|
||||||
let record = parse_record(&stream[offset + 4..offset + 4 + payload_size], 2);
|
let record = parse_record(&stream[offset + 4..offset + 4 + payload_size], 2);
|
||||||
let record = record.unwrap();
|
let record = record.unwrap();
|
||||||
|
|
||||||
|
println!("{:?}", record);
|
||||||
|
|
||||||
Some(
|
Some(
|
||||||
parse_page(
|
parse_page(
|
||||||
database,
|
database,
|
||||||
|
|
|
@ -68,7 +68,11 @@ impl<'a> ColumnValue<'a> {
|
||||||
ColumnValue::U16(v) => *v as u32,
|
ColumnValue::U16(v) => *v as u32,
|
||||||
ColumnValue::U24(v) => *v as u32,
|
ColumnValue::U24(v) => *v as u32,
|
||||||
ColumnValue::U32(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::U32(v) => *v as usize,
|
||||||
ColumnValue::U48(v) => *v as usize,
|
ColumnValue::U48(v) => *v as usize,
|
||||||
ColumnValue::U64(v) => *v as usize,
|
ColumnValue::U64(v) => *v as usize,
|
||||||
_ => unreachable!(),
|
v => {
|
||||||
|
println!("{:?}", v);
|
||||||
|
|
||||||
|
unreachable!()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user