mirror of
https://github.com/logos-storage/logos-storage-proofs.git
synced 2026-01-02 13:33:10 +00:00
setting up mpack basics
This commit is contained in:
parent
f107bdbb11
commit
833f01a7c2
@ -221,12 +221,14 @@ mod tests {
|
|||||||
let chunks = data.iter()
|
let chunks = data.iter()
|
||||||
.map(|c| {
|
.map(|c| {
|
||||||
let x = c.0.iter()
|
let x = c.0.iter()
|
||||||
.map(|c| Value::Ext(10, c.to_le_bytes_vec()))
|
.map(|c| Value::Ext(50, c.to_le_bytes_vec()))
|
||||||
.collect::<Vec<Value>>();
|
.collect::<Vec<Value>>();
|
||||||
Value::Array(x)
|
Value::Array(x)
|
||||||
})
|
})
|
||||||
.collect::<Vec<Value>>();
|
.collect::<Vec<Value>>();
|
||||||
|
let chunks = Value::Array(chunks);
|
||||||
|
|
||||||
|
println!("Debug: chunks: {:?}", chunks[0][0]);
|
||||||
println!("Debug: chunks: {:?}", chunks[0]);
|
println!("Debug: chunks: {:?}", chunks[0]);
|
||||||
|
|
||||||
write_value_ref(&mut buf, &val).unwrap();
|
write_value_ref(&mut buf, &val).unwrap();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user