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

16
inc/hgl/io/SeekOrigin.h Normal file
View File

@@ -0,0 +1,16 @@
#ifndef HGL_IO_SEEK_ORIGIN_INCLUDE
#define HGL_IO_SEEK_ORIGIN_INCLUDE
namespace hgl
{
namespace io
{
enum class SeekOrigin /// 资源偏移方向枚举
{
Begin=0, ///<从资源最开始处开始offset必须大于0。移到资源的offset位置
Current, ///<从资源当前位置开始移到资源的Position+offset位置
End ///<从资源的结束位置开始offset必须小于0表示结束前的字符数
};//enum SeekOrigin
}//namespace io
}//namespace hgl
#endif//HGL_IO_SEEK_ORIGIN_INCLUDE