added ConstBufferReader

This commit is contained in:
2023-02-23 18:59:25 +08:00
parent ac5931ce26
commit ba7176099f
3 changed files with 167 additions and 8 deletions

View File

@@ -1,18 +1,12 @@
#ifndef HGL_IO_SEEK_ACCESS_INCLUDE
#define HGL_IO_SEEK_ACCESS_INCLUDE
#include<hgl/type/DataType.h>
#include<hgl/platform/Platform.h>
#include<hgl/io/SeekOrigin.h>
namespace hgl
{
namespace io
{
enum class SeekOrigin /// 资源偏移方向枚举
{
Begin=0, ///<从资源最开始处开始offset必须大于0。移到资源的offset位置
Current, ///<从资源当前位置开始移到资源的Position+offset位置
End ///<从资源的结束位置开始offset必须小于0表示结束前的字符数
};//enum SeekOrigin
/**
* 定位访问功能基类
*/