Signet Forge 0.1.0
C++20 Parquet library with AI-native extensions
DEMO
Loading...
Searching...
No Matches
signet::forge::thrift::FieldHeader Struct Reference

Decoded field header from the Thrift Compact Protocol. More...

#include <compact.hpp>

Public Member Functions

bool is_stop () const
 Check if this is the STOP marker (end of struct).
 

Public Attributes

int16_t field_id
 Thrift field identifier (from the schema).
 
uint8_t thrift_type
 Wire type (one of the compact_type constants).
 

Detailed Description

Decoded field header from the Thrift Compact Protocol.

Returned by CompactDecoder::read_field_header(). A field with field_id == 0 and thrift_type == 0 represents the STOP marker.

Definition at line 46 of file compact.hpp.

Member Function Documentation

◆ is_stop()

bool signet::forge::thrift::FieldHeader::is_stop ( ) const
inline

Check if this is the STOP marker (end of struct).

Definition at line 51 of file compact.hpp.

Member Data Documentation

◆ field_id

int16_t signet::forge::thrift::FieldHeader::field_id

Thrift field identifier (from the schema).

Definition at line 47 of file compact.hpp.

◆ thrift_type

uint8_t signet::forge::thrift::FieldHeader::thrift_type

Wire type (one of the compact_type constants).

Definition at line 48 of file compact.hpp.


The documentation for this struct was generated from the following file: