use int64 instead size_t in MemoryInputStream/MemoryOutputStream

This commit is contained in:
2020-08-08 20:10:27 +08:00
parent 4c22ba5a60
commit 46574e0f49
2 changed files with 10 additions and 10 deletions

View File

@@ -14,8 +14,8 @@ namespace hgl
protected:
const uint8 *buf;
size_t buf_size;
size_t cur_pos;
int64 buf_size;
int64 cur_pos;
public:
@@ -37,7 +37,7 @@ namespace hgl
* @param size 数据长度字节数
* @return 是否成功
*/
bool Link(const void *data,const size_t size)
bool Link(const void *data,const int64 size)
{
if(!data)
return(false);
@@ -55,7 +55,7 @@ namespace hgl
* @param size 数据长度字节数
* @return 是否成功
*/
bool Update(void *data,size_t size)
bool Update(void *data,int64 size)
{
if(!data)
return(false);