OpenTTD Source 20260324-master-gd9c35037d4
HTTPThreadSafeCallback::Callback Class Reference

Entries on the queue for later handling. More...

Public Member Functions

 Callback (std::unique_ptr< char[]> data, size_t length)
 Create the callback.
 Callback ()=default
 Default constructor for a failed callback.

Data Fields

std::unique_ptr< char[]> data {}
 The data of the callback.
size_t length = 0
 The length of the data.
bool failure = true
 Whether the callback denotes a failure.

Detailed Description

Entries on the queue for later handling.

Definition at line 23 of file http_shared.h.

Constructor & Destructor Documentation

◆ Callback()

HTTPThreadSafeCallback::Callback::Callback ( std::unique_ptr< char[]> data,
size_t length )
inline

Create the callback.

Parameters
dataThe data of the callback.
lengthThe length of the data.

Definition at line 30 of file http_shared.h.

References data, failure, and length.

Field Documentation

◆ data

std::unique_ptr<char[]> HTTPThreadSafeCallback::Callback::data {}

The data of the callback.

Definition at line 34 of file http_shared.h.

Referenced by Callback().

◆ failure

bool HTTPThreadSafeCallback::Callback::failure = true

Whether the callback denotes a failure.

Definition at line 36 of file http_shared.h.

Referenced by Callback().

◆ length

size_t HTTPThreadSafeCallback::Callback::length = 0

The length of the data.

Definition at line 35 of file http_shared.h.

Referenced by Callback().


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