HashOptions

sealed external interface HashOptions : TransformOptions(source)

Properties

Link copied to clipboard
abstract var allowHalfOpen: Boolean?
Link copied to clipboard
abstract var autoDestroy: Boolean?
Link copied to clipboard
abstract override val construct: (callback: (JsError?) -> Unit) -> Unit?
Link copied to clipboard
abstract var decodeStrings: Boolean?
Link copied to clipboard
Link copied to clipboard
abstract override val destroy: (JsError?, callback: (JsError?) -> Unit) -> Unit?
Link copied to clipboard
abstract var emitClose: Boolean?
Link copied to clipboard
abstract var encoding: BufferEncoding?
Link copied to clipboard
abstract override val final: (callback: (JsError?) -> Unit) -> Unit?
Link copied to clipboard
abstract val flush: (TransformCallback) -> Unit?
Link copied to clipboard
abstract var highWaterMark: Double?
Link copied to clipboard
abstract var objectMode: Boolean?
Link copied to clipboard
abstract var outputLength: Double?

For XOF hash functions such as shake256, the outputLength option can be used to specify the desired output length in bytes.

Link copied to clipboard
abstract override val read: (size: Number) -> Unit?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract val signal: AbortSignal?
Link copied to clipboard
abstract val transform: (chunk: Any?, encoding: BufferEncoding, TransformCallback) -> Unit?
Link copied to clipboard
abstract var writableCorked: Double?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract override val write: (chunk: Any?, encoding: BufferEncoding, callback: (JsError?) -> Unit) -> Unit?
Link copied to clipboard
abstract override val writev: (chunks: Array<WritableOptionsWritevChunksItem>, callback: (JsError?) -> Unit) -> Unit?

Functions

Link copied to clipboard
inline operator fun copy(noinline signal: AbortSignal?): Abortable