Skip to main content
Version: 3.13.0

ByteLengthQueuingStrategy.size()

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

Syntax

size(chunk)

Parameters

  • chunk
    • : A chunk of data being passed through the stream.

Return value

An integer representing the byte length of the given chunk.