junobuild_satellite

Function get_content_chunks_store

Source
pub fn get_content_chunks_store(
    encoding: &AssetEncoding,
    chunk_index: usize,
    memory: &Memory,
) -> Option<Blob>
Expand description

Get content chunks of an asset.

This function retrieves content chunks of an asset based on the specified parameters. It returns an Option<Blob> representing the content chunks, or None if no chunks are found.

§Parameters

  • encoding: A reference to the AssetEncoding indicating the encoding of the asset.
  • chunk_index: The index of the content chunk to retrieve.
  • memory: A reference to the Memory type (Heap or Stable).

§Returns

  • Some(Blob): Content chunks of the asset.
  • None: No content chunks found.

This function allows you to retrieve content chunks of an asset stored in a Juno collection’s store.