Skip to content

HashOptions

[<Interface>]
type HashOptions =
    abstract member destroy: Destroy option with get, set
    abstract member outputLength: float option with get, set
    abstract member transform: Transform option with get, set
    abstract member write: Write option with get, set
    abstract member writev: Writev option with get, set
    static member Create (?outputLength: float, ?signal: AbortSignal, ?emitClose: bool, ?highWaterMark: float, ?objectMode: bool, ?construct: ((exn option -> unit) -> unit), ?destroy: Destroy, ?autoDestroy: bool, ?encoding: BufferEncoding, ?read: (float -> unit), ?decodeStrings: bool, ?defaultEncoding: BufferEncoding, ?write: Write, ?writev: Writev, ?final: ((exn option -> unit) -> unit), ?allowHalfOpen: bool, ?readableObjectMode: bool, ?writableObjectMode: bool, ?readableHighWaterMark: float, ?writableHighWaterMark: float, ?writableCorked: float, ?transform: Transform, ?flush: (TransformCallback -> unit)) : HashOptions
AssemblyXantham.Fable.Node
ImplementsTransformOptions<Transform>
Attributes[<Interface>]

Declared inside

Destroy
Transform
Write
Writev

Properties

abstract member destroy: Destroy option with get, set
abstract member outputLength: float option with get, set

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

abstract member transform: Transform option with get, set
abstract member write: Write option with get, set
abstract member writev: Writev option with get, set

Methods

static member Create (?outputLength: float, ?signal: AbortSignal, ?emitClose: bool, ?highWaterMark: float, ?objectMode: bool, ?construct: ((exn option -> unit) -> unit), ?destroy: Destroy, ?autoDestroy: bool, ?encoding: BufferEncoding, ?read: (float -> unit), ?decodeStrings: bool, ?defaultEncoding: BufferEncoding, ?write: Write, ?writev: Writev, ?final: ((exn option -> unit) -> unit), ?allowHalfOpen: bool, ?readableObjectMode: bool, ?writableObjectMode: bool, ?readableHighWaterMark: float, ?writableHighWaterMark: float, ?writableCorked: float, ?transform: Transform, ?flush: (TransformCallback -> unit)) : HashOptions