Skip to content

ByteRange

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

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:33

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:31

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