---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# ByteLengthQueuingStrategy.size()

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

## Syntax

```js
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.
