Function toStack

  • Converts the given chunks into a stack of buffers.

    Parameters

    • chunks: Buffer | (number | Buffer)[]

      The chunks to convert.

    Returns Buffer[]

    The stack of buffers.