pub fn find_cell_by_out_point(
buf: &mut [u8],
out_point: &[u8],
) -> Result<usize, SysError>
Expand description
Find a cell by its OutPoint
Retrieves cell information using the specified OutPoint. The cell data is written to the provided buffer.
§Arguments
buf
- A mutable buffer to receive the cell dataout_point
- The serialized OutPoint identifying the cell to find
§Returns
Ok(usize)
- The actual length of the cell data written to the bufferErr(SysError)
- A system error if the operation fails
§Errors
Returns SysError::LengthNotEnough
if the buffer is too small to hold the data
Returns SysError::IndexOutOfBound
if the OutPoint is invalid
Returns SysError::ItemMissing
if the cell cannot be found