pcm/Utils: remove unused function pcm_end_pointer()
This commit is contained in:
parent
7eda72d440
commit
bd01d80ffc
@ -29,18 +29,6 @@
|
|||||||
enum class SampleFormat : uint8_t;
|
enum class SampleFormat : uint8_t;
|
||||||
template<SampleFormat F> struct SampleTraits;
|
template<SampleFormat F> struct SampleTraits;
|
||||||
|
|
||||||
/**
|
|
||||||
* Add a byte count to the specified pointer. This is a utility
|
|
||||||
* function to convert a source pointer and a byte count to an "end"
|
|
||||||
* pointer for use in loops.
|
|
||||||
*/
|
|
||||||
template<typename T>
|
|
||||||
static inline const T *
|
|
||||||
pcm_end_pointer(const T *p, size_t size)
|
|
||||||
{
|
|
||||||
return (const T *)((const uint8_t *)p + size);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if the value is within the range of the provided bit size,
|
* Check if the value is within the range of the provided bit size,
|
||||||
* and caps it if necessary.
|
* and caps it if necessary.
|
||||||
|
Loading…
Reference in New Issue
Block a user