Function max_supported_object_length

Source
pub fn max_supported_object_length() -> usize
Expand description

The maximum object length the implementation in this module can reliably handle.

Currently objects are limited by the largest block size in the consensus chain, which is 5 MB. But this implementation can retrieve all objects smaller than a segment (up to 124 MB). Some objects between 124 MB and 248 MB are supported, if they span 2 segments (but not 3 segments). But objects that large don’t currently exist, so we use the lower limit to avoid potential security and reliability issues.

The maximum object length excludes segment padding, and the parent segment header at the start of the next segment.