rename symbol
This commit is contained in:
parent
53bde2bc3f
commit
a78be6b79a
@ -437,7 +437,7 @@ impl<R:BinReaderExt> File<R>{
|
|||||||
let mut big_block=Block::default();
|
let mut big_block=Block::default();
|
||||||
for &TimedBlockId{time:_,block_id} in block_iter{
|
for &TimedBlockId{time:_,block_id} in block_iter{
|
||||||
let block_info=self.header.block_info(block_id)?;
|
let block_info=self.header.block_info(block_id)?;
|
||||||
self.data.read_block_info_into(block_info,&mut big_block)?;
|
self.data.read_block_info_into_block(block_info,&mut big_block)?;
|
||||||
}
|
}
|
||||||
Ok(big_block)
|
Ok(big_block)
|
||||||
}
|
}
|
||||||
@ -459,7 +459,7 @@ impl<R:BinReaderExt> FileData<R>{
|
|||||||
let block=Block::read(data).map_err(Error::InvalidData)?;
|
let block=Block::read(data).map_err(Error::InvalidData)?;
|
||||||
Ok(block)
|
Ok(block)
|
||||||
}
|
}
|
||||||
pub fn read_block_info_into(&mut self,block_info:BlockInfo,block:&mut Block)->Result<(),Error>{
|
pub fn read_block_info_into_block(&mut self,block_info:BlockInfo,block:&mut Block)->Result<(),Error>{
|
||||||
let data=self.block_reader(block_info)?;
|
let data=self.block_reader(block_info)?;
|
||||||
Block::read_into_amortized(data,block).map_err(Error::InvalidData)?;
|
Block::read_into_amortized(data,block).map_err(Error::InvalidData)?;
|
||||||
Ok(())
|
Ok(())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user