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
Constructors
ByteLengthQueuingStrategy()
public ByteLengthQueuingStrategy()
ByteLengthQueuingStrategy(QueuingStrategyInit)
The ByteLengthQueuingStrategy()
constructor creates and returns a ByteLengthQueuingStrategy object
instance.
public ByteLengthQueuingStrategy(QueuingStrategyInit init)
Parameters
initQueuingStrategyInit
Remarks
-ByteLengthQueuingStrategy interface
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 thehighWaterMarkproperty specifies a simple count of the number of chunks, withByteLengthQueuingStrategy(), thehighWaterMarkparameter 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
Size
The size() method of the
ByteLengthQueuingStrategy interface returns the given chunk'sbyteLength property.
[Value("size")]
public Function Size { get; }
Property Value
- Function
An integer representing the byte length of the given chunk.