ScummVM API documentation
Saga::ByteArray Class Reference
Inheritance diagram for Saga::ByteArray:
Common::Array< byte >

Public Member Functions

byte * getBuffer ()
 
const byte * getBuffer () const
 
void assign (const ByteArray &src)
 
 ByteArray (const byte *array, size_type n)
 
- Public Member Functions inherited from Common::Array< byte >
 Array (size_type count)
 
 Array (size_type count, const byte &value)
 
 Array (const Array< byte > &array)
 
 Array (Array< byte > &&old)
 
 Array (std::initializer_list< byte > list)
 
 Array (const T2 *array, size_type n)
 
void push_back (const byte &element)
 
void push_back (const Array< byte > &array)
 
void pop_back ()
 
const byte * data () const
 
byte * data ()
 
byte & front ()
 
const byte & front () const
 
byte & back ()
 
const byte & back () const
 
void insert_at (size_type idx, const byte &element)
 
void insert_at (size_type idx, const Array< byte > &array)
 
void insert (iterator pos, const byte &element)
 
byte remove_at (size_type idx)
 
byte & operator[] (size_type idx)
 
const byte & operator[] (size_type idx) const
 
Array< byte > & operator= (const Array< byte > &array)
 
Arrayoperator= (Array< byte > &&old)
 
size_type size () const
 
void clear ()
 
iterator erase (iterator pos)
 
iterator erase (iterator first, iterator last)
 
bool empty () const
 
bool operator== (const Array< byte > &other) const
 
bool operator!= (const Array< byte > &other) const
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
void reserve (size_type newCapacity)
 
void resize (size_type newSize)
 
void resize (size_type newSize, const byte value)
 
void assign (const_iterator first, const_iterator last)
 
void swap (Array &arr)
 

Additional Inherited Members

- Public Types inherited from Common::Array< byte >
typedef byte * iterator
 
typedef const byte * const_iterator
 
typedef byte value_type
 
typedef uint size_type
 
- Protected Member Functions inherited from Common::Array< byte >
void allocCapacity (size_type capacity)
 
void freeStorage (byte *storage, const size_type elements)
 
iterator insert_aux (iterator pos, const_iterator first, const_iterator last)
 
- Static Protected Member Functions inherited from Common::Array< byte >
static size_type roundUpCapacity (size_type capacity)
 
- Protected Attributes inherited from Common::Array< byte >
size_type _capacity
 
size_type _size
 
byte * _storage
 

Member Function Documentation

◆ getBuffer()

byte* Saga::ByteArray::getBuffer ( )
inline

Return a pointer to the start of the buffer underlying this byte array, or NULL if the buffer is empty.


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