consume overloads

Synopses

Declared in <llvm/DebugInfo/CodeView/RecordSerialization.h>

No‐op consume that always succeeds; base case for variadic consume.

Decode a numeric leaf value from the type stream into Num.

Decode a null‐terminated string.

Decode a signed fixed‐length 32‐bit integer.

Error
consume(
    BinaryStreamReader& Reader,
    int32_t& Item);

Decode an unsigned fixed‐length 32‐bit integer.

Error
consume(
    BinaryStreamReader& Reader,
    uint32_t& Item);

Consume a null‐terminated string‐array helper from Reader.

Decode a numeric leaf value from a string buffer into Num.

Error
consume(
    StringRef& Data,
    APSInt& Num);

Decode an unsigned 32‐bit integer from a string buffer.

Error
consume(
    StringRef& Data,
    uint32_t& Item);

Consume an arrayref‐tail serialization helper from Reader.

template<typename T>
Error
consume(
    BinaryStreamReader& Reader,
    serialize_arrayref_tail_impl<T> const& Item);

Consume a numeric serialization helper from Reader.

template<typename T>
Error
consume(
    BinaryStreamReader& Reader,
    serialize_numeric_impl<T> const& Item);

Consume a vector‐tail serialization helper from Reader.

template<typename T>
Error
consume(
    BinaryStreamReader& Reader,
    serialize_vector_tail_impl<T> const& Item);

Decode an object whose layout matches the underlying byte sequence.

template<typename T>
Error
consume(
    BinaryStreamReader& Reader,
    T*& Item);

Consume an array serialization helper from Reader.

template<
    typename T,
    typename U>
Error
consume(
    BinaryStreamReader& Reader,
    serialize_array_impl<T, U> const& Item);

Consume a conditional serialization helper from Reader.

template<
    typename T,
    typename U>
Error
consume(
    BinaryStreamReader& Reader,
    serialize_conditional_impl<T, U> const& Item);

Consume multiple fields from Reader in order.

template<
    typename T,
    typename U,
    typename... Args>
Error
consume(
    BinaryStreamReader& Reader,
    T&& X,
    U&& Y,
    Args&&... Rest);

Return Value

  • Success.

  • Success, or an Error if the numeric leaf cannot be decoded.

  • Success, or an Error if the string cannot be read.

  • Success, or an Error if the integer cannot be read.

  • Success, or an Error if deserialization fails.

  • An error on failure, or success with Item pointing at the object.

  • Success, or an Error if any field cannot be consumed.

Parameters

Name

Description

Reader

Stream reader (unused).

Num

Receives the decoded arbitrary‐precision integer.

Item

Receives the decoded string (without the terminator).

Data

Buffer advanced past the consumed bytes on success.

X

First field or helper to consume.

Y

Second field or helper to consume.

Rest

Remaining fields or helpers to consume.

Created with MrDocs