Options
All
  • Public
  • Public/Protected
  • All
Menu

Module iterator

Index

Functions

Functions

Const iterate

  • iterate(buffer: Uint8Array, size?: number): Generator<IteratorValue, IteratorValue, IteratorValue>
  • Iterate over a buffer with the specified size. This will yield a part of the buffer starting at an increment of the specified size, until the end of the buffer is reached.

    Calling the skip function will make it skip the specified number of bytes.

    Parameters

    • buffer: Uint8Array

      The buffer to iterate over.

    • size: number = 32

    Returns Generator<IteratorValue, IteratorValue, IteratorValue>

Generated using TypeDoc