pcm/PcmBuffer: add typed method GetT()

This commit is contained in:
Max Kellermann 2013-12-02 09:20:46 +01:00
parent 3a0f3eaa50
commit af3b454805

View File

@ -49,6 +49,12 @@ public:
*/
gcc_malloc
void *Get(size_t size);
template<typename T>
gcc_malloc
T *GetT(size_t n) {
return (T *)Get(n * sizeof(T));
}
};
#endif