commit 2025-08-24 00:20 add and test ZCppMainTest/ZtCLoadXml_000.cpp
This commit is contained in:
@ -4117,7 +4117,10 @@ namespace ZNsMain
|
||||
using namespace ZNsMain::ZNsChars ;
|
||||
using ZNsMain::ZNsConst::CPC_DirDelimiter ;
|
||||
|
||||
ZTypLength VL_FindPos=ZtCMainChars::FindPosFromEnd
|
||||
typedef ZNsChars::ZNsType::
|
||||
ZtCTypeChars<TTypChar> ZCTypeChars ;
|
||||
|
||||
ZTypLength VL_FindPos = ZCTypeChars::FindPosFromEnd
|
||||
( APC_PathName, CPC_DirDelimiter, AI_Length, 1 ) ;
|
||||
|
||||
if(VL_FindPos<0)
|
||||
@ -6084,12 +6087,12 @@ namespace ZNsMain
|
||||
}/*
|
||||
void SetHandle(int AI_FileHandle)*/
|
||||
|
||||
void Init(int AI_FileHandle, std::LLong ALL_Offset=0)
|
||||
void Init(int AI_FileHandle, ZNsMain::ZTypLong ALL_Offset=0)
|
||||
{
|
||||
this->aio_fildes=AI_FileHandle;
|
||||
this->aio_offset=ALL_Offset ;
|
||||
}/*
|
||||
void Init(int AI_FileHandle, std::LLong ALL_Offset=0)*/
|
||||
void Init(int AI_FileHandle, ZNsMain::ZTypLong ALL_Offset=0)*/
|
||||
|
||||
int Read(volatile char* AP_Buffer, int AI_BufSize)
|
||||
{
|
||||
@ -6876,13 +6879,13 @@ namespace ZNsMain
|
||||
|
||||
bool GetInfo(int AI_Resource)
|
||||
{
|
||||
::getrlimit(AI_Resource, this)==0;
|
||||
return ::getrlimit(AI_Resource, this)==0;
|
||||
}/*
|
||||
bool GetInfo(int AI_Resource)*/
|
||||
|
||||
void SetInfo(int AI_Resource)
|
||||
{
|
||||
::setrlimit(AI_Resource, this)==0;
|
||||
return ::setrlimit(AI_Resource, this)==0;
|
||||
}/*
|
||||
void SetInfo(int AI_Resource)*/
|
||||
|
||||
@ -7029,12 +7032,12 @@ namespace ZNsMain
|
||||
|
||||
// 이때 mi_HeadPos, mi_TailPos 에 유효한 값이 들어있다.
|
||||
|
||||
int VI_EmptyBuffCnt=0;
|
||||
::iovec* VP_IOBuff =mo_IOBuff+mi_HeadPos;
|
||||
int VI_EmptyBuffCnt= 0 ;
|
||||
::iovec* VP_IOBuff = mo_IOBuff+mi_HeadPos;
|
||||
|
||||
for(int i=mi_HeadPos; i<=mi_TailPos; ++i)
|
||||
{
|
||||
if(AL_Length>=std::IntI(VP_IOBuff->iov_len))
|
||||
if(AL_Length>=ZNsMain::ZTypInt(VP_IOBuff->iov_len))
|
||||
{
|
||||
AL_Length -= VP_IOBuff->iov_len;
|
||||
ml_AllLen -= VP_IOBuff->iov_len;
|
||||
@ -7048,10 +7051,10 @@ namespace ZNsMain
|
||||
if(AL_Length<=0)
|
||||
{
|
||||
return VI_EmptyBuffCnt;
|
||||
}/*
|
||||
if(AL_Length<=0)*/
|
||||
}
|
||||
////////////////
|
||||
}
|
||||
else // AL_Length<std::IntI(VP_IOBuff->iov_len)
|
||||
else // AL_Length<ZNsMain::ZTypInt(VP_IOBuff->iov_len)
|
||||
{
|
||||
if(APL_LastInvalidByte!=0)
|
||||
*APL_LastInvalidByte=AL_Length;
|
||||
@ -7062,7 +7065,7 @@ namespace ZNsMain
|
||||
|
||||
return VI_EmptyBuffCnt;
|
||||
}/*
|
||||
else // AL_Length<std::IntI(VP_IOBuff->iov_len)*/
|
||||
else // AL_Length<ZNsMain::ZTypInt(VP_IOBuff->iov_len)*/
|
||||
|
||||
++VP_IOBuff;
|
||||
}/*
|
||||
|
Reference in New Issue
Block a user