clang-tools 19.0.0git
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
clang::clangd::dex::Chunk Struct Reference

NOTE: This is an implementation detail. More...

#include <PostingList.h>

Public Member Functions

llvm::SmallVector< DocID, PayloadSize+1 > decompress () const
 

Public Attributes

DocID Head
 The first element of decompressed Chunk.
 
std::array< uint8_t, PayloadSizePayload
 VByte-encoded deltas.
 

Static Public Attributes

static constexpr size_t PayloadSize = 32 - sizeof(DocID)
 Keep sizeof(Chunk) == 32.
 

Detailed Description

NOTE: This is an implementation detail.

Chunk is a fixed-width piece of PostingList which contains the first DocID in uncompressed format (Head) and delta-encoded Payload. It can be decompressed upon request.

Definition at line 42 of file PostingList.h.

Member Function Documentation

◆ decompress()

llvm::SmallVector< DocID, Chunk::PayloadSize+1 > clang::clangd::dex::Chunk::decompress ( ) const

Definition at line 204 of file PostingList.cpp.

References Head, and Payload.

Member Data Documentation

◆ Head

DocID clang::clangd::dex::Chunk::Head

The first element of decompressed Chunk.

Definition at line 49 of file PostingList.h.

Referenced by decompress().

◆ Payload

std::array<uint8_t, PayloadSize> clang::clangd::dex::Chunk::Payload

VByte-encoded deltas.

Definition at line 51 of file PostingList.h.

Referenced by decompress().

◆ PayloadSize

constexpr size_t clang::clangd::dex::Chunk::PayloadSize = 32 - sizeof(DocID)
staticconstexpr

Keep sizeof(Chunk) == 32.

Definition at line 44 of file PostingList.h.


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