# Interface: `IEmscriptenStreamOps` [@jupyterlite/contents](../modules/jupyterlite_contents.md).IEmscriptenStreamOps ## Implemented by - [`DriveFSEmscriptenStreamOps`](../classes/jupyterlite_contents.DriveFSEmscriptenStreamOps.md) ## Methods ### `close` > > **`close`**(`stream`): `void` #### Parameters | Name | Type | | :------ | :------ | | `stream` | [`IEmscriptenStream`](jupyterlite_contents.IEmscriptenStream.md) | #### Returns `void` #### Defined in [packages/contents/src/emscripten.ts:97](https://github.com/jupyterlite/jupyterlite/blob/6de9813/packages/contents/src/emscripten.ts#L97) ### `llseek` > > **`llseek`**(`stream`, `offset`, `whence`): `number` #### Parameters | Name | Type | | :------ | :------ | | `stream` | [`IEmscriptenStream`](jupyterlite_contents.IEmscriptenStream.md) | | `offset` | `number` | | `whence` | `number` | #### Returns `number` #### Defined in [packages/contents/src/emscripten.ts:112](https://github.com/jupyterlite/jupyterlite/blob/6de9813/packages/contents/src/emscripten.ts#L112) ### `open` > > **`open`**(`stream`): `void` #### Parameters | Name | Type | | :------ | :------ | | `stream` | [`IEmscriptenStream`](jupyterlite_contents.IEmscriptenStream.md) | #### Returns `void` #### Defined in [packages/contents/src/emscripten.ts:96](https://github.com/jupyterlite/jupyterlite/blob/6de9813/packages/contents/src/emscripten.ts#L96) ### `read` > > **`read`**(`stream`, `buffer`, `offset`, `length`, `position`): `number` #### Parameters | Name | Type | | :------ | :------ | | `stream` | [`IEmscriptenStream`](jupyterlite_contents.IEmscriptenStream.md) | | `buffer` | `Uint8Array` | | `offset` | `number` | | `length` | `number` | | `position` | `number` | #### Returns `number` #### Defined in [packages/contents/src/emscripten.ts:98](https://github.com/jupyterlite/jupyterlite/blob/6de9813/packages/contents/src/emscripten.ts#L98) ### `write` > > **`write`**(`stream`, `buffer`, `offset`, `length`, `position`): `number` #### Parameters | Name | Type | | :------ | :------ | | `stream` | [`IEmscriptenStream`](jupyterlite_contents.IEmscriptenStream.md) | | `buffer` | `Uint8Array` | | `offset` | `number` | | `length` | `number` | | `position` | `number` | #### Returns `number` #### Defined in [packages/contents/src/emscripten.ts:105](https://github.com/jupyterlite/jupyterlite/blob/6de9813/packages/contents/src/emscripten.ts#L105)