TDME2 1.9.121
Public Member Functions | Static Public Member Functions | List of all members
ByteBuffer Class Reference

Byte buffer class. More...

#include <tdme/utilities/ByteBuffer.h>

Inheritance diagram for ByteBuffer:
Inheritance graph
Collaboration diagram for ByteBuffer:
Collaboration graph

Public Member Functions

FloatBuffer asFloatBuffer ()
 
IntBuffer asIntBuffer ()
 
ShortBuffer asShortBuffer ()
 
 ByteBuffer (int32_t capacity)
 Public constructor. More...
 
 ByteBuffer (vector< uint8_t > *data)
 Public constructor. More...
 
- Public Member Functions inherited from Buffer
 Buffer (int32_t capacity)
 Public constructor. More...
 
 Buffer (Buffer *buffer)
 Public constructor. More...
 
 Buffer (vector< uint8_t > *data)
 Public constructor. More...
 
virtual ~Buffer ()
 Destructor. More...
 
Bufferclear ()
 Clear. More...
 
virtual int32_t getCapacity ()
 
virtual int32_t getPosition ()
 
virtual BuffersetPosition (int32_t position)
 Set position. More...
 
uint8_t get (int32_t position)
 
Bufferput (uint8_t value)
 Put value into buffer. More...
 
Bufferput (const uint8_t *data, int32_t size)
 Put data into buffer. More...
 
uint8_t * getBuffer ()
 

Static Public Member Functions

static ByteBufferallocate (int32_t capacity)
 Allocate byte buffer. More...
 

Detailed Description

Byte buffer class.

Author
Andreas Drewke

Definition at line 23 of file ByteBuffer.h.

Constructor & Destructor Documentation

◆ ByteBuffer() [1/2]

ByteBuffer ( int32_t  capacity)
inline

Public constructor.

Parameters
capacitycapacity

Definition at line 59 of file ByteBuffer.h.

◆ ByteBuffer() [2/2]

ByteBuffer ( vector< uint8_t > *  data)
inline

Public constructor.

Parameters
datadata

Definition at line 66 of file ByteBuffer.h.

Member Function Documentation

◆ allocate()

static ByteBuffer * allocate ( int32_t  capacity)
inlinestatic

Allocate byte buffer.

Definition at line 29 of file ByteBuffer.h.

◆ asFloatBuffer()

FloatBuffer asFloatBuffer ( )
inline
Returns
this buffer as float buffer

Definition at line 36 of file ByteBuffer.h.

◆ asIntBuffer()

IntBuffer asIntBuffer ( )
inline
Returns
this buffer as int buffer

Definition at line 43 of file ByteBuffer.h.

◆ asShortBuffer()

ShortBuffer asShortBuffer ( )
inline
Returns
this buffer as short buffer

Definition at line 50 of file ByteBuffer.h.


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