NAP
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
OSCBlob Class Reference

#include <oscargument.h>

Public Member Functions

 OSCBlob (const void *sourceData, int size)
 
virtual ~OSCBlob ()
 
void * getCopy ()
 
virtual std::string toString () const override
 
- Public Member Functions inherited from OSCBaseValue
 OSCBaseValue ()=default
 
virtual ~OSCBaseValue ()=default
 

Public Attributes

void * mData = nullptr
 
int mSize = 0
 

Protected Member Functions

virtual void add (osc::OutboundPacketStream &outPacket) const override
 
virtual size_t size () const override
 

Description

OSC value that holds a blob of data

Inheritance diagram for OSCBlob:
[legend]
Collaboration diagram for OSCBlob:
[legend]

Constructor & Destructor Documentation

◆ OSCBlob()

OSCBlob ( const void *  sourceData,
int  size 
)

Constructor copies the blob data block over in to mData This object ones that data, on destruction the data is deleted

Parameters
sourceDatathe osc data associated with the blob
sizethe size of the blob in bytes

◆ ~OSCBlob()

virtual ~OSCBlob ( )
virtual

On Destruction the blob data is deleted

Member Function Documentation

◆ add()

virtual void add ( osc::OutboundPacketStream &  outPacket) const
overrideprotectedvirtual

Adds the managed value to the packet

Parameters
outPacketthe packet to add the value to

Implements OSCBaseValue.

◆ getCopy()

void* getCopy ( )
Returns
an unmanaged copy of the data

◆ size()

virtual size_t size ( ) const
overrideprotectedvirtual
Returns
the size in bytes of the stored value type

Implements OSCBaseValue.

◆ toString()

virtual std::string toString ( ) const
overridevirtual
Returns
an empty string

Implements OSCBaseValue.

Member Data Documentation

◆ mData

void* mData = nullptr

◆ mSize

int mSize = 0