AVBlocks for C++  1.9
Audio and Video Software Development Kit
ByteArrayParameter Class Reference

The parameter represents a byte array (buffer). More...

Inherits Parameter.

List of all members.

Public Member Functions

virtual uint8_t * data () const =0
 Returns the start of the byte array.
virtual void setData (uint8_t *data)=0
 Sets the start of the byte array.
virtual int32_t size () const =0
 Returns the number of bytes in the array.
virtual void setSize (int32_t dataSize)=0
 Sets the number of bytes in the array.

Detailed Description

The parameter represents a byte array (buffer).


Member Function Documentation

virtual uint8_t* data ( ) const [pure virtual]

Returns the start of the byte array.

Returns:
A pointer to the first byte in the array. The returned pointer can be NULL.
virtual void setData ( uint8_t *  data) [pure virtual]

Sets the start of the byte array.

Parameters:
data[in] A pointer to the first byte in the array. It is allowed to set NULL.
virtual void setSize ( int32_t  dataSize) [pure virtual]

Sets the number of bytes in the array.

Parameters:
dataSize[in] Number of bytes. It is allowed to set 0 in which case the byte array is empty.
virtual int32_t size ( ) const [pure virtual]

Returns the number of bytes in the array.

Returns:
Number of bytes. If 0 the array is empty.
 All Classes Namespaces Files Functions Variables Enumerations Enumerator