commit 2025-10-17 01:04 edit a bit ZCppMain/ZMainHead.H

This commit is contained in:
2025-10-17 01:04:35 +09:00
parent b4871d1b07
commit fcb513d4ac
2 changed files with 8 additions and 12 deletions

View File

@ -3260,10 +3260,10 @@ namespace ZNsMain
TTypeNow mo_ZCObjNow ; TTypeNow mo_ZCObjNow ;
TTypeNext mo_ZCObjNext; TTypeNext mo_ZCObjNext;
public : public :
ZCObjNow& GetNowObj () {return mo_ZCObjNow ;} ZCObjNow & GetNowObj () {return mo_ZCObjNow ;}
ZCObjNext& GetNextObj() {return mo_ZCObjNext;} ZCObjNext& GetNextObj() {return mo_ZCObjNext;}
/*#####################################################*/ /*#########################################################*/
const ZCObjNow& GetNowObj () const{return mo_ZCObjNow ;} const ZCObjNow & GetNowObj () const{return mo_ZCObjNow ;}
const ZCObjNext& GetNextObj() const{return mo_ZCObjNext;} const ZCObjNext& GetNextObj() const{return mo_ZCObjNext;}
public: public:
};/* };/*
@ -3285,7 +3285,7 @@ namespace ZNsMain
public : public :
ZCObjNow& GetNowObj () {return mo_ZCObjNow;} ZCObjNow& GetNowObj () {return mo_ZCObjNow;}
ZCObjNext& GetNextObj() {return mo_ZCObjNow;} ZCObjNext& GetNextObj() {return mo_ZCObjNow;}
/*####################################################*/ /*########################################################*/
const ZCObjNow& GetNowObj () const{return mo_ZCObjNow;} const ZCObjNow& GetNowObj () const{return mo_ZCObjNow;}
const ZCObjNext& GetNextObj() const{return mo_ZCObjNow;} const ZCObjNext& GetNextObj() const{return mo_ZCObjNow;}
public: public:

View File

@ -7136,7 +7136,6 @@ namespace ZNsMain
{ {
return VI_EmptyBuffCnt; return VI_EmptyBuffCnt;
} }
////////////////
} }
else // AL_Length<ZNsMain::ZTypInt(VP_IOBuff->iov_len) else // AL_Length<ZNsMain::ZTypInt(VP_IOBuff->iov_len)
{ {
@ -7167,12 +7166,10 @@ namespace ZNsMain
void MoveFirst() void MoveFirst()
{ {
if(mi_HeadPos<1) return; if(mi_HeadPos<1) return ;
int VI_Index=0 ; int VI_Index= 0, i = mi_HeadPos;
int i =mi_HeadPos; int VI_ValidBuffCnt = GetSize() ;
int VI_ValidBuffCnt=GetSize();
for(; i<=mi_TailPos; ++i) for(; i<=mi_TailPos; ++i)
{ {
@ -7189,8 +7186,7 @@ namespace ZNsMain
}/* }/*
for(i=0; i<mi_HeadPos; ++i)*/ for(i=0; i<mi_HeadPos; ++i)*/
mi_HeadPos=0 ; mi_HeadPos= 0 ; mi_TailPos= VI_ValidBuffCnt-1;
mi_TailPos=VI_ValidBuffCnt-1;
}/* }/*
void MoveFirst()*/ void MoveFirst()*/