Sese Framework  2.3.0
A cross-platform framework
Loading...
Searching...
No Matches
sese::iocp::IOBufNode Struct Reference

IOBuf Node. More...

#include <IOBuf.h>

Public Member Functions

 IOBufNode (size_t capacity)
 
 ~IOBufNode ()
 
size_t getReadableSize () const noexcept
 
size_t getWriteableSize () const noexcept
 

Public Attributes

void * buffer {nullptr}
 Cache pointers.
 
size_t read {0}
 Cache read size.
 
size_t size {0}
 The cache is populated with size.
 
const size_t CAPACITY
 The size of the cache capacity.
 

Detailed Description

IOBuf Node.

Constructor & Destructor Documentation

◆ IOBufNode()

sese::iocp::IOBufNode::IOBufNode ( size_t capacity)
explicit

Creates a new node

Parameters
capacityThe size of the node's capacity

References buffer.

◆ ~IOBufNode()

sese::iocp::IOBufNode::~IOBufNode ( )

References free().

Member Function Documentation

◆ getReadableSize()

size_t sese::iocp::IOBufNode::getReadableSize ( ) const
nodiscardnoexcept

Get the readable size of the node

Returns
Readable size

References read().

Referenced by sese::iocp::IOBuf::peek().

◆ getWriteableSize()

size_t sese::iocp::IOBufNode::getWriteableSize ( ) const
nodiscardnoexcept

Get the writable size of the node

Returns
Writable size (free portion)

Member Data Documentation

◆ buffer

void* sese::iocp::IOBufNode::buffer {nullptr}

◆ CAPACITY

const size_t sese::iocp::IOBufNode::CAPACITY

The size of the cache capacity.

Referenced by sese::_windows::iocp::v1::NativeIOCPServer::postRead().

◆ read

size_t sese::iocp::IOBufNode::read {0}

Cache read size.

Referenced by sese::iocp::IOBuf::peek().

◆ size

size_t sese::iocp::IOBufNode::size {0}

The cache is populated with size.

Referenced by sese::iocp::IOBuf::peek().


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