#
Class: _ _ internal _ XetBlob

XetBlob is a blob implementation that fetches data directly from the Xet storage

##
Hierarchy

- `Blob`

  ↳ `__internal_XetBlob`

##
Constructors

###
constructor

• new __internal_XetBlob(`params`): `__internal_XetBlob`

####
Parameters

Name | Type
--- | ---
`params` | `XetBlobCreateOptions`

####
Returns

`__internal_XetBlob`

####
Overrides

Blob.constructor

####
Defined in

packages/hub/src/utils/XetBlob.ts:96

##
Properties

###
#reconstructionInfoPromise

• `Private` `Optional` #reconstructionInfoPromise: `Promise`\<`ReconstructionInfo`>

####
Defined in

packages/hub/src/utils/XetBlob.ts:151

###
accessToken

• `Optional` accessToken: `string`

####
Defined in

packages/hub/src/utils/XetBlob.ts:86

###
end

• end: `number` = `0`

####
Defined in

packages/hub/src/utils/XetBlob.ts:91

###
fetch

• fetch: (`input`: `URL` | `RequestInfo`, `init?`: `RequestInit`) => `Promise`\<`Response`>(`input`: `string` | `URL` | `Request`, `init?`: `RequestInit`) => `Promise`\<`Response`>

####
Type declaration

▸ (`input`, `init?`): `Promise`\<`Response`>

MDN Reference

#####
Parameters

Name | Type
--- | ---
`input` | `URL` | `RequestInfo`
`init?` | `RequestInit`

#####
Returns

`Promise`\<`Response`>

▸ (`input`, `init?`): `Promise`\<`Response`>

#####
Parameters

Name | Type
--- | ---
`input` | `string` | `URL` | `Request`
`init?` | `RequestInit`

#####
Returns

`Promise`\<`Response`>

####
Defined in

packages/hub/src/utils/XetBlob.ts:85

###
hash

• `Optional` hash: `string`

####
Defined in

packages/hub/src/utils/XetBlob.ts:89

###
internalLogging

• internalLogging: `boolean` = `false`

####
Defined in

packages/hub/src/utils/XetBlob.ts:92

###
listener

• listener: `undefined` | (`arg`: { `event`: `"read"` } | { `event`: `"progress"` ; `progress`: { `read`: `number` ; `total`: `number` } }) => `void`

####
Defined in

packages/hub/src/utils/XetBlob.ts:94

###
reconstructionInfo

• reconstructionInfo: `undefined` | `ReconstructionInfo`

####
Defined in

packages/hub/src/utils/XetBlob.ts:93

###
reconstructionUrl

• `Optional` reconstructionUrl: `string`

####
Defined in

packages/hub/src/utils/XetBlob.ts:88

###
refreshUrl

• refreshUrl: `string`

####
Defined in

packages/hub/src/utils/XetBlob.ts:87

###
start

• start: `number` = `0`

####
Defined in

packages/hub/src/utils/XetBlob.ts:90

###
type

• `Readonly` type: `string`

MDN Reference

####
Inherited from

Blob.type

####
Defined in

packages/doc-internal/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.dom.d.ts:3501

##
Accessors

###
size

• `get` size(): `number`

####
Returns

`number`

####
Overrides

Blob.size

####
Defined in

packages/hub/src/utils/XetBlob.ts:110

##
Methods

###
#clone

▸ #clone(): `__internal_XetBlob`

####
Returns

`__internal_XetBlob`

####
Defined in

packages/hub/src/utils/XetBlob.ts:114

###
#fetch

▸ #fetch(): `Promise`\<`ReadableStream`\<`Uint8Array`\<`ArrayBufferLike`>>>

####
Returns

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

####
Defined in

packages/hub/src/utils/XetBlob.ts:184

###
#loadReconstructionInfo

▸ #loadReconstructionInfo(): `Promise`\<`ReconstructionInfo`>

####
Returns

`Promise`\<`ReconstructionInfo`>

####
Defined in

packages/hub/src/utils/XetBlob.ts:153

###
arrayBuffer

▸ arrayBuffer(): `Promise`\<`ArrayBuffer`>

####
Returns

`Promise`\<`ArrayBuffer`>

####
Overrides

Blob.arrayBuffer

####
Defined in

packages/hub/src/utils/XetBlob.ts:486

###
bytes

▸ bytes(): `Promise`\<`Uint8Array`\<`ArrayBufferLike`>>

MDN Reference

####
Returns

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

####
Inherited from

Blob.bytes

####
Defined in

packages/doc-internal/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.dom.d.ts:3505

###
response

▸ response(): `Promise`\<`Response`>

####
Returns

`Promise`\<`Response`>

####
Defined in

packages/hub/src/utils/XetBlob.ts:498

###
slice

▸ slice(`start?`, `end?`): `__internal_XetBlob`

####
Parameters

Name | Type | Default value
--- | --- | ---
`start` | `number` | `0`
`end` | `number` | `undefined`

####
Returns

`__internal_XetBlob`

####
Overrides

Blob.slice

####
Defined in

packages/hub/src/utils/XetBlob.ts:134

###
stream

▸ stream(): `ReadableStream`\<`Uint8Array`\<`ArrayBufferLike`>>

####
Returns

`ReadableStream`\<`Uint8Array`\<`ArrayBufferLike`>>

####
Overrides

Blob.stream

####
Defined in

packages/hub/src/utils/XetBlob.ts:504

###
text

▸ text(): `Promise`\<`string`>

####
Returns

`Promise`\<`string`>

####
Overrides

Blob.text

####
Defined in

packages/hub/src/utils/XetBlob.ts:492

< > Update on GitHub