Skip to main content
Skip to main content

DuplexOptions

admin/discounts.internal.DuplexOptions

Properties

allowHalfOpenboolean
autoDestroyboolean
decodeStringsboolean
defaultEncodingBufferEncoding
emitCloseboolean
highWaterMarknumber
objectModeboolean
readableHighWaterMarknumber
readableObjectModeboolean
signalAbortSignal
When provided the corresponding AbortController can be used to cancel an asynchronous action.
writableCorkednumber
writableHighWaterMarknumber
writableObjectModeboolean

Methods

construct

Optional construct(this, callback): void

Parameters

thisDuplexRequired
callback(error?: null | Error) => voidRequired

Returns

void

voidvoid

Overrides

WritableOptions.construct


destroy

Optional destroy(this, error, callback): void

Parameters

thisDuplexRequired
errornull | ErrorRequired
callback(error: null | Error) => voidRequired

Returns

void

voidvoid

Overrides

WritableOptions.destroy


final

Optional final(this, callback): void

Parameters

thisDuplexRequired
callback(error?: null | Error) => voidRequired

Returns

void

voidvoid

Overrides

WritableOptions.final


read

Optional read(this, size): void

Parameters

thisDuplexRequired
sizenumberRequired

Returns

void

voidvoid

Overrides

ReadableOptions.read


write

Optional write(this, chunk, encoding, callback): void

Parameters

thisDuplexRequired
chunkanyRequired
encodingBufferEncodingRequired
callback(error?: null | Error) => voidRequired

Returns

void

voidvoid

Overrides

WritableOptions.write


writev

Optional writev(this, chunks, callback): void

Parameters

thisDuplexRequired
chunks{ chunk: any ; encoding: BufferEncoding }[]Required
callback(error?: null | Error) => voidRequired

Returns

void

voidvoid

Overrides

WritableOptions.writev

Was this section helpful?