lib/k2hqueue.cc
bool K2HLowOpsQueue::Read(unsigned char** ppdata, size_t& datalen, int pos, const char* encpass) const
{
	if(!ppdata || (0 != pos && -1 != pos) || encpass){				// [NOTE] do not use encpass and pos must be 0 or -1
		ERR_K2HPRN("Parameters are wrong.");
		return false;
	}
	if(!IsSafe()){
		ERR_K2HPRN("This object is not safe.");
		return false;
	}
	return pK2HShm->ReadQueue(marker, marker_len, ppdata, datalen, pos);
}
//---------------------------------------------------------
// K2HLowOpsQueue Class : Methods
//---------------------------------------------------------
//
// Read next pop queue key name
// ppdata	- next queue key binary array
// datalen	- next queue key length
//
K2HLowOpsQueue Class : Methods
Read next pop queue key name
ppdata - next queue key binary array
datalen        - next queue key length
K2HLowOpsQueue Class : Methods Read next pop queue key name ppdata - next queue key binary array datalen - next queue key length
bool K2HLowOpsQueue::Read(unsigned char** ppdata, size_t& datalen, int pos, const char* encpass) const
{
	if(!ppdata || (0 != pos && -1 != pos) || encpass){				
		ERR_K2HPRN("Parameters are wrong.");
		return false;
	}
	if(!IsSafe()){
		ERR_K2HPRN("This object is not safe.");
		return false;
	}
	return pK2HShm->ReadQueue(marker, marker_len, ppdata, datalen, pos);
}
bool K2HLowOpsQueue :: Read ( unsigned char * * ppdata , size_t & datalen , int pos , const char * encpass ) const { if ( ! ppdata || ( 0 != pos && -1 != pos ) || encpass ) { ERR_K2HPRN ( " " ) ; return false ; } if ( ! IsSafe ( ) ) { ERR_K2HPRN ( " " ) ; return false ; } return pK2HShm -> ReadQueue ( marker , marker_len , ppdata , datalen , pos ) ; }
K2HLowOpsQueue Class : Methods
Read next pop queue key name
ppdata - next queue key binary array
datalen        - next queue key length
K2HLowOpsQueue Class : Methods Read next pop queue key name ppdata - next queue key binary array datalen - next queue key length
// [NOTE] do not use encpass and pos must be 0 or -1