# Class: `DriveFSEmscriptenStreamOps` [@jupyterlite/contents](../modules/jupyterlite_contents.md).DriveFSEmscriptenStreamOps ## Implements - [`IEmscriptenStreamOps`](../interfaces/jupyterlite_contents.IEmscriptenStreamOps.md) ## Constructors ### `constructor` > > **`new DriveFSEmscriptenStreamOps`**(`fs`) #### Parameters | Name | Type | | :------ | :------ | | `fs` | [`DriveFS`](jupyterlite_contents.DriveFS-1.md) | #### Defined in [packages/contents/src/drivefs.ts:159](https://github.com/jupyterlite/jupyterlite/blob/999c7f0/packages/contents/src/drivefs.ts#L159) ## Properties ### `fs` > > `Private` **`fs`**: [`DriveFS`](jupyterlite_contents.DriveFS-1.md) #### Defined in [packages/contents/src/drivefs.ts:157](https://github.com/jupyterlite/jupyterlite/blob/999c7f0/packages/contents/src/drivefs.ts#L157) ## Methods ### `close` > > **`close`**(`stream`): `void` #### Parameters | Name | Type | | :------ | :------ | | `stream` | [`IDriveStream`](../interfaces/jupyterlite_contents.IDriveStream.md) | #### Returns `void` #### Implementation of [IEmscriptenStreamOps](../interfaces/jupyterlite_contents.IEmscriptenStreamOps.md).[close](../interfaces/jupyterlite_contents.IEmscriptenStreamOps.md#close) #### Defined in [packages/contents/src/drivefs.ts:170](https://github.com/jupyterlite/jupyterlite/blob/999c7f0/packages/contents/src/drivefs.ts#L170) ### `llseek` > > **`llseek`**(`stream`, `offset`, `whence`): `number` #### Parameters | Name | Type | | :------ | :------ | | `stream` | [`IDriveStream`](../interfaces/jupyterlite_contents.IDriveStream.md) | | `offset` | `number` | | `whence` | `number` | #### Returns `number` #### Implementation of [IEmscriptenStreamOps](../interfaces/jupyterlite_contents.IEmscriptenStreamOps.md).[llseek](../interfaces/jupyterlite_contents.IEmscriptenStreamOps.md#llseek) #### Defined in [packages/contents/src/drivefs.ts:237](https://github.com/jupyterlite/jupyterlite/blob/999c7f0/packages/contents/src/drivefs.ts#L237) ### `open` > > **`open`**(`stream`): `void` #### Parameters | Name | Type | | :------ | :------ | | `stream` | [`IDriveStream`](../interfaces/jupyterlite_contents.IDriveStream.md) | #### Returns `void` #### Implementation of [IEmscriptenStreamOps](../interfaces/jupyterlite_contents.IEmscriptenStreamOps.md).[open](../interfaces/jupyterlite_contents.IEmscriptenStreamOps.md#open) #### Defined in [packages/contents/src/drivefs.ts:163](https://github.com/jupyterlite/jupyterlite/blob/999c7f0/packages/contents/src/drivefs.ts#L163) ### `read` > > **`read`**(`stream`, `buffer`, `offset`, `length`, `position`): `number` #### Parameters | Name | Type | | :------ | :------ | | `stream` | [`IDriveStream`](../interfaces/jupyterlite_contents.IDriveStream.md) | | `buffer` | `Uint8Array` | | `offset` | `number` | | `length` | `number` | | `position` | `number` | #### Returns `number` #### Implementation of [IEmscriptenStreamOps](../interfaces/jupyterlite_contents.IEmscriptenStreamOps.md).[read](../interfaces/jupyterlite_contents.IEmscriptenStreamOps.md#read) #### Defined in [packages/contents/src/drivefs.ts:193](https://github.com/jupyterlite/jupyterlite/blob/999c7f0/packages/contents/src/drivefs.ts#L193) ### `write` > > **`write`**(`stream`, `buffer`, `offset`, `length`, `position`): `number` #### Parameters | Name | Type | | :------ | :------ | | `stream` | [`IDriveStream`](../interfaces/jupyterlite_contents.IDriveStream.md) | | `buffer` | `Uint8Array` | | `offset` | `number` | | `length` | `number` | | `position` | `number` | #### Returns `number` #### Implementation of [IEmscriptenStreamOps](../interfaces/jupyterlite_contents.IEmscriptenStreamOps.md).[write](../interfaces/jupyterlite_contents.IEmscriptenStreamOps.md#write) #### Defined in [packages/contents/src/drivefs.ts:213](https://github.com/jupyterlite/jupyterlite/blob/999c7f0/packages/contents/src/drivefs.ts#L213)