• decode an array from a BinaryStream

    Parameters

    • stream: BinaryStream

      the stream.

    • decodeElementFunc: ((stream: BinaryStream) => any)

      The function to decode a single array element. This function returns the element decoded from the stream

    Returns any[] | null

    an array of elements or nul