getByteLength

View Source

Summary

Returns the length of the byte range in a buffer of the given size.

Signature

function getByteLength(range: ByteRange, size: number): number;

Params

range

The byte range

size

The total size of the buffer

Returns

The length of the byte range