Skip to content

ByteRange

Defined in: packages/filecoin-encryption-envelope/src/range/plan.ts:35

A byte range over an object’s plaintext, HTTP Range-header style.

optional length?: number

Defined in: packages/filecoin-encryption-envelope/src/range/plan.ts:39

Bytes to include. Omitted means “to the end”. Forbidden together with a negative offset.


offset: number

Defined in: packages/filecoin-encryption-envelope/src/range/plan.ts:37

Non-negative: from the start. Negative: a suffix, e.g. -1024 is the last 1024 bytes.