add TellPointer function in MemoryInputStream
This commit is contained in:
parent
6b4feef78e
commit
72f2b58e12
@ -145,6 +145,12 @@ namespace hgl
|
|||||||
return cur_pos;
|
return cur_pos;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const void *TellPointer()const
|
||||||
|
{
|
||||||
|
if(!buf)return(nullptr);
|
||||||
|
return buf+cur_pos;
|
||||||
|
}
|
||||||
|
|
||||||
int64 GetSize()const
|
int64 GetSize()const
|
||||||
{
|
{
|
||||||
if(!buf)return(-1);
|
if(!buf)return(-1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user