Commit af3b4548 authored by Max Kellermann's avatar Max Kellermann

pcm/PcmBuffer: add typed method GetT()

parent 3a0f3eaa
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment