A Discrete-Event Network Simulator
API
ns3::FdReader::Data Struct Reference

A structure representing data read. More...

#include "fd-reader.h"

+ Collaboration diagram for ns3::FdReader::Data:

Public Member Functions

 Data ()
 Default constructor, with null buffer and zero length. More...
 
 Data (uint8_t *buf, ssize_t len)
 Construct from a buffer of a given length. More...
 

Public Attributes

uint8_t * m_buf
 The read data buffer. More...
 
ssize_t m_len
 The size of the read data buffer, in bytes. More...
 

Detailed Description

A structure representing data read.

Definition at line 90 of file fd-reader.h.

Constructor & Destructor Documentation

◆ Data() [1/2]

ns3::FdReader::Data::Data ( )
inline

Default constructor, with null buffer and zero length.

Definition at line 93 of file fd-reader.h.

◆ Data() [2/2]

ns3::FdReader::Data::Data ( uint8_t *  buf,
ssize_t  len 
)
inline

Construct from a buffer of a given length.

Parameters
[in]bufThe buffer.
[in]lenThe size of the buffer, in bytes.

Definition at line 105 of file fd-reader.h.

Member Data Documentation

◆ m_buf

uint8_t* ns3::FdReader::Data::m_buf

The read data buffer.

Definition at line 112 of file fd-reader.h.

◆ m_len

ssize_t ns3::FdReader::Data::m_len

The size of the read data buffer, in bytes.

Definition at line 114 of file fd-reader.h.


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