The complete file content as a Uint8Array
A promise that resolves to the raw layout file bytes (JSON format)
const fileData = new TextEncoder().encode('Hello, Lumera!');
const layoutBytes = await createSingleBlockLayout(fileData);
// Parse if needed for verification
const layout = parseLayoutFile(layoutBytes);
console.log('Transfer length:', layout.transfer_length);
console.log('Symbol size:', layout.symbol_size);
Creates a single-block RaptorQ layout from file bytes.
This function generates a deterministic RaptorQ layout suitable for encoding the provided file data into a single source block. The layout is computed by the rq-wasm library and includes all parameters needed for encoding and decoding.