Table of Contents

Class ByteLengthQueuingStrategy

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The ByteLengthQueuingStrategy interface of the Streams API provides a built-in byte length queuing strategy that can be used when constructing streams.

[Value("ByteLengthQueuingStrategy")]
public class ByteLengthQueuingStrategy
Inheritance
ByteLengthQueuingStrategy
Inherited Members

Remarks

-{{domxref("Streams API", "Streams API", "", "nocode")}}
-Internal queues and queuing strategies
-ByteLengthQueuingStrategy(QueuingStrategyInit) constructor

See also on MDN

Constructors

ByteLengthQueuingStrategy()

public ByteLengthQueuingStrategy()

ByteLengthQueuingStrategy(QueuingStrategyInit)

The ByteLengthQueuingStrategy()
constructor creates and returns a ByteLengthQueuingStrategy object
instance.

public ByteLengthQueuingStrategy(QueuingStrategyInit init)

Parameters

init QueuingStrategyInit

Remarks

Properties

HighWaterMark

The read-only ByteLengthQueuingStrategy.highWaterMark property returns the total number of bytes that can be contained in the internal queue before backpressure is applied.

[Value("highWaterMark")]
public double HighWaterMark { get; }

Property Value

double

An integer.

Remarks

NOTE

Unlike CountQueuingStrategy() where the highWaterMark property specifies a simple count of the number of chunks, with ByteLengthQueuingStrategy(), the highWaterMark parameter specifies a number of bytes — specifically, given a stream of chunks, how many bytes worth of those chunks (rather than a count of how many of those chunks) can be contained in the internal queue before backpressure is applied.

-ByteLengthQueuingStrategy(QueuingStrategyInit) constructor

See also on MDN

Size

The size() method of the
ByteLengthQueuingStrategy interface returns the given chunk's
byteLength property.

[Value("size")]
public Function Size { get; }

Property Value

Function

An integer representing the byte length of the given chunk.

Remarks