add TellPointer function in MemoryInputStream

This commit is contained in:
hyzboy 2020-06-09 19:39:37 +08:00
parent 6b4feef78e
commit 72f2b58e12

View File

@ -145,6 +145,12 @@ namespace hgl
return cur_pos;
}
const void *TellPointer()const
{
if(!buf)return(nullptr);
return buf+cur_pos;
}
int64 GetSize()const
{
if(!buf)return(-1);