Skip to main content

MAX_FILE_SIZE_BYTES

Constant MAX_FILE_SIZE_BYTES 

Source
pub const MAX_FILE_SIZE_BYTES: u64 = _; // 131_072u64
Expand description

The most a file may hold to be read: one Vec, which the language caps at 2^17 bytes (maxLengthBytes in fjs/types/bit_vec). Metadata can refuse a larger file before reading; the read also checks the bytes actually returned.