Skip to main content

load_segment

Function load_segment 

Source
pub async fn load_segment<S: StorageEngine>(
    storage: &Arc<S>,
    name: &str,
    seg_id: u64,
) -> Result<Vec<u8>, LiteError>
Expand description

Load segment bytes for seg_id.

When as_array_segment_ext() is available (pagedb backend), the bytes are read from the encrypted pagedb segment. Otherwise they are read from the KV blob in the Array namespace.