PTLib
Version 2.10.4
|
Array of short integers. More...
#include <array.h>
Public Member Functions | |
Construction | |
PShortArray (PINDEX initialSize=0) | |
Construct a new dynamic array of shorts. | |
PShortArray (short const *buffer, PINDEX length, PBoolean dynamic=true) | |
Construct a new dynamic array of shorts. |
Array of short integers.
PShortArray::PShortArray | ( | PINDEX | initialSize = 0 | ) |
Construct a new dynamic array of shorts.
The array is initialised to all zeros.
initialSize | Initial number of elements in the array. |
PShortArray::PShortArray | ( | short const * | buffer, |
PINDEX | length, | ||
PBoolean | dynamic = true |
||
) |
Construct a new dynamic array of shorts.
buffer | Pointer to an array of shorts. |
length | Number of elements pointed to by buffer . |
dynamic | Buffer is copied and dynamically allocated. |