pub fn find_cell_data_by_out_point(
buf: &mut [u8],
out_point: &[u8],
) -> Result<usize, SysError>
Expand description
Find cell data by OutPoint
Retrieves the data contained in a cell identified by the specified OutPoint. The cell’s data is written to the provided buffer.
§Arguments
buf
- A mutable buffer to receive the cell’s dataout_point
- The serialized OutPoint identifying the cell whose data to retrieve
§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