Array of fixed‐size records backed by a BinaryStream.

Synopsis

Declared in <llvm/Support/BinaryStreamArray.h>

template<typename T>
class FixedStreamArray;

Description

FixedStreamArray is similar to VarStreamArray, except with each record having a fixed‐length. As with VarStreamArray, there is no upfront cost associated with building or copying a FixedStreamArray, as the memory for each element is not read from the backing stream until that element is iterated.

Type Aliases

Name

Description

Iterator

Iterator over the elements in this array.

Member Functions

Name

Description

FixedStreamArray [constructor]

Constructors

operator=

Copy‐assign a FixedStreamArray.

back

Return a const reference to the last element.

begin

Return an iterator to the first element.

empty

Return true if the array contains no elements.

end

Return an iterator past the last element.

front

Return a const reference to the first element.

getUnderlyingStream

Return the BinaryStreamRef backing this array.

operator[]

Return a const reference to the element at Index.

size

Return the number of elements in the array.

operator==

Return true if this array refers to the same stream as Other.

operator!=

Return true if this array does not refer to the same stream as Other.

Friends

Name

Description

llvm::FixedStreamArrayIterator

Random‐access iterator over the elements of a FixedStreamArray.

Created with MrDocs