Fixed bug: properly return data pointer when requested offset is not 0.
git-svn-id: http://voip.null.ro/svn/yate@6109 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
0728f5d626
commit
c0d3c0a7a6
|
@ -523,7 +523,7 @@ public:
|
|||
* @return A pointer to data at requested offset, NULL if there is no data available
|
||||
*/
|
||||
inline Obj* data(unsigned int offs = 0)
|
||||
{ return data(offs,length()); }
|
||||
{ return data(offs,available(offs)); }
|
||||
|
||||
/**
|
||||
* Get a pointer to data from offset to vector end
|
||||
|
@ -531,7 +531,7 @@ public:
|
|||
* @return A pointer to data at requested offset, NULL if there is no data available
|
||||
*/
|
||||
inline const Obj* data(unsigned int offs = 0) const
|
||||
{ return data(offs,length()); }
|
||||
{ return data(offs,available(offs)); }
|
||||
|
||||
/**
|
||||
* Get a pointer to data from offset to vector end
|
||||
|
|
Loading…
Reference in New Issue