> ## Documentation Index
> Fetch the complete documentation index at: https://chart-spec.enchor.us/llms.txt
> Use this file to discover all available pages before exploring further.

# ByteSource

A file read on demand, such as a browser `File` or Node's `fs.openAsBlob`, so large files never have to be loaded.

## Properties

| Property | Modifier | Type |
| - | - | - |
|  `size` | `readonly` | `number` |

## Methods

### read()

```ts theme={null}
read(offset, length): Promise<Uint8Array<ArrayBufferLike>>;
```

#### Parameters

| Parameter | Type |
| - | - |
| `offset` | `number` |
| `length` | `number` |

#### Returns

`Promise`\<`Uint8Array`\<`ArrayBufferLike`>>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.