pub fn find_cell_data_by_out_point(
out_point: OutPoint,
) -> Result<Vec<u8>, SysError>
Expand description
Find cell data by OutPoint
Retrieves the data contained in a cell identified by the given OutPoint.
§Arguments
out_point
- The OutPoint identifying the cell whose data to retrieve
§Returns
Ok(Vec<u8>)
- The cell’s data as a byte vector if foundErr(SysError)
- A system error if the operation fails
§Example
let out_point = OutPoint::new(...);
let data = find_cell_data_by_out_point(out_point).unwrap();
§Errors
- Returns
SysError::ItemMissing
if the cell cannot be found - Returns
SysError::LengthNotEnough
if the data buffer is too small
§Panics
This function can panic if the underlying data is too large, potentially causing an out-of-memory error.