Skip to content

Sha384Sink

Defined in: packages/crypto-hash/src/sha2/sha384-sink.ts:10

An incremental SHA-384 hasher — see Sha2_32Sink’s module doc for the general WritableStream<Uint8Array> pattern shared by every sink in this package. Differs from Sha512Sink only in its Sha2_64Parameters, exactly as sha384Ts differs from sha512Ts.

  • Sha2_64Sink

new Sha384Sink(): Sha384Sink

Defined in: packages/crypto-hash/src/sha2/sha384-sink.ts:11

Sha384Sink

Sha2_64Sink.constructor

readonly locked: boolean

Defined in: node_modules/.store/@types-web-npm-0.0.361-9908d15a9c/package/index.d.ts:42656

The locked read-only property of the WritableStream interface returns a boolean indicating whether the WritableStream is locked to a writer.

MDN Reference

Sha2_64Sink.locked

get digest(): Promise<Uint8Array<ArrayBufferLike>>

Defined in: packages/crypto-hash/src/sha2/_sha2-64-sink.ts:59

Promise<Uint8Array<ArrayBufferLike>>

Sha2_64Sink.digest

abort(reason?): Promise<void>

Defined in: node_modules/.store/@types-web-npm-0.0.361-9908d15a9c/package/index.d.ts:42662

The abort() method of the WritableStream interface aborts the stream, signaling that the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.

MDN Reference

any

Promise<void>

Sha2_64Sink.abort


close(): Promise<void>

Defined in: node_modules/.store/@types-web-npm-0.0.361-9908d15a9c/package/index.d.ts:42668

The close() method of the WritableStream interface closes the associated stream. All chunks written before this method is called are sent before the returned promise is fulfilled.

MDN Reference

Promise<void>

Sha2_64Sink.close


getWriter(): WritableStreamDefaultWriter<Uint8Array<ArrayBufferLike>>

Defined in: node_modules/.store/@types-web-npm-0.0.361-9908d15a9c/package/index.d.ts:42674

The getWriter() method of the WritableStream interface returns a new instance of WritableStreamDefaultWriter and locks the stream to that instance. While the stream is locked, no other writer can be acquired until this one is released.

MDN Reference

WritableStreamDefaultWriter<Uint8Array<ArrayBufferLike>>

Sha2_64Sink.getWriter