NVIDIA Iray API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mi::IBuffer Class Referenceabstract

Abstract interface for a simple buffer with binary data. More...

Inheritance diagram for mi::IBuffer:
Inheritance graph
[legend]

Public Member Functions

virtual const Uint8 get_data () const =0
  Returns a pointer to the data represented by the buffer. More...
 
virtual Size  get_data_size () const =0
  Returns the size of the buffer. More...
 

Additional Inherited Members

- Public Types inherited from mi::base::Interface_declare< 0xfb925baf, 0x1e38, 0x461b, 0x8e, 0xcd, 0x65, 0xa3, 0xf5, 0x20, 0xe5, 0x92 >
typedef Interface_declare< id1,
id2, id3, id4, id5, id6, id7,
id8, id9, id10, id11,
IInterface
Self
  Own type. More...
 
typedef Uuid_t< id1, id2, id3,
id4, id5, id6, id7, id8, id9,
id10, id11 > 
IID
  Declares the interface ID (IID) of this interface. More...
 
- Static Public Member Functions inherited from mi::base::Interface_declare< 0xfb925baf, 0x1e38, 0x461b, 0x8e, 0xcd, 0x65, 0xa3, 0xf5, 0x20, 0xe5, 0x92 >
static bool  compare_iid (const Uuid &iid)
  Compares the interface ID iid against the interface ID of this interface and of its ancestors. More...
 

Detailed Description

Abstract interface for a simple buffer with binary data.

The length of the buffer is given by get_data_size(). The data is not '\0'-terminated

Member Function Documentation

virtual const Uint8* mi::IBuffer::get_data ( ) const
pure virtual

Returns a pointer to the data represented by the buffer.

virtual Size mi::IBuffer::get_data_size ( ) const
pure virtual

Returns the size of the buffer.