libredfish
Public Attributes | List of all members
MemoryStruct Struct Reference

A representation of memory for CURL callbacks. More...

Public Attributes

char * memory
 The memory pointer. More...
 
size_t size
 The size of the memory region pointed to by memory. More...
 
char * origin
 The original memory pointer. More...
 
size_t originalSize
 The original size of the memory pointer. More...
 

Detailed Description

A representation of memory for CURL callbacks.

An item representing memory for use in CURL callbacks allowing for movement through the buffer as data is sent/receieved.

Member Data Documentation

◆ memory

char* MemoryStruct::memory

The memory pointer.

On data sent to the server this pointer will be incremented as data is sent and will always point to the next byte to be sent. On data receieved from the server this pointer will always point to the first data byte receieved and be reallocated as needed.

◆ origin

char* MemoryStruct::origin

The original memory pointer.

On data sent to the server this pointer will point to the first byte sent allowing the buffer to be freed when complete. This pointer is not used on receive.

◆ originalSize

size_t MemoryStruct::originalSize

The original size of the memory pointer.

On data sent to the server this will contain the original value of size. This is used when seeking back in the buffer to resent part of the payload. This pointer is not used on receive.

◆ size

size_t MemoryStruct::size

The size of the memory region pointed to by memory.

On data sent to the server this value will be reduced as the memory pointer is incremented. On data received from the server this value will be increased to represent the total size of the memory pointer


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