libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
introvirt::windows::ws2_32::WSABUF Class Referenceabstract

#include <WSABUF.hh>

Public Member Functions

virtual uint32_t len () const =0
 Get the length of the buffer, in bytes.
 
virtual void len (uint32_t len)=0
 Set the length of the buffer, in bytes.
 
virtual guest_ptr< const uint8_t[]> buf () const =0
 Get the buffer.
 
virtual guest_ptr< uint8_t[]> buf ()=0
 
virtual void buf (const guest_ptr< uint8_t[]> &buf)=0
 Set the buffer.
 

Static Public Member Functions

static std::shared_ptr< WSABUFmake_shared (const guest_ptr< void > &ptr, bool x64)
 Parse a WSABUF instance from the guest.
 
static size_t size (bool x64)
 Get the size of the structure.
 

Detailed Description

Member Function Documentation

◆ buf() [1/3]

virtual guest_ptr< const uint8_t[]> introvirt::windows::ws2_32::WSABUF::buf ( ) const
pure virtual

Get the buffer.

◆ buf() [2/3]

virtual guest_ptr< uint8_t[]> introvirt::windows::ws2_32::WSABUF::buf ( )
pure virtual

◆ buf() [3/3]

virtual void introvirt::windows::ws2_32::WSABUF::buf ( const guest_ptr< uint8_t[]> &  buf)
pure virtual

Set the buffer.

◆ len() [1/2]

virtual uint32_t introvirt::windows::ws2_32::WSABUF::len ( ) const
pure virtual

Get the length of the buffer, in bytes.

◆ len() [2/2]

virtual void introvirt::windows::ws2_32::WSABUF::len ( uint32_t  len)
pure virtual

Set the length of the buffer, in bytes.

◆ make_shared()

static std::shared_ptr< WSABUF > introvirt::windows::ws2_32::WSABUF::make_shared ( const guest_ptr< void > &  ptr,
bool  x64 
)
static

Parse a WSABUF instance from the guest.

Parameters
ptrThe address of the instance
x64If the structure is 64-bit or not
Returns
std::shared_ptr<WSABUF>

◆ size()

static size_t introvirt::windows::ws2_32::WSABUF::size ( bool  x64)
static

Get the size of the structure.


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