本文整理汇总了C++中xdr_uint32函数的典型用法代码示例。如果您正苦于以下问题:C++ xdr_uint32函数的具体用法?C++ xdr_uint32怎么用?C++ xdr_uint32使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了xdr_uint32函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: xdr_decode_reply_wchunk
/*
* XDR decode the long reply write chunk.
*/
bool_t
xdr_decode_reply_wchunk(XDR *xdrs, struct clist **clist)
{
bool_t have_rchunk = FALSE;
struct clist *first = NULL, *ncl = NULL;
uint32_t num_wclist;
uint32_t i;
if (!xdr_bool(xdrs, &have_rchunk))
return (FALSE);
if (have_rchunk == FALSE)
return (TRUE);
if (!xdr_uint32(xdrs, &num_wclist)) {
DTRACE_PROBE(krpc__e__xdrrdma__replywchunk__listlength);
return (FALSE);
}
if (num_wclist == 0) {
return (FALSE);
}
first = ncl = clist_alloc();
for (i = 0; i < num_wclist; i++) {
if (i > 0) {
ncl->c_next = clist_alloc();
ncl = ncl->c_next;
}
if (!xdr_uint32(xdrs, &ncl->c_dmemhandle.mrc_rmr))
goto err_out;
if (!xdr_uint32(xdrs, &ncl->c_len))
goto err_out;
if (!xdr_uint64(xdrs, &ncl->u.c_daddr))
goto err_out;
if (ncl->c_len > MAX_SVC_XFER_SIZE) {
DTRACE_PROBE(
krpc__e__xdrrdma__replywchunk__chunklist_toobig);
ncl->c_len = MAX_SVC_XFER_SIZE;
}
if (!(ncl->c_dmemhandle.mrc_rmr &&
(ncl->c_len > 0) && ncl->u.c_daddr))
DTRACE_PROBE(
krpc__e__xdrrdma__replywchunk__invalid_segaddr);
DTRACE_PROBE1(krpc__i__xdr_decode_reply_wchunk_c_len,
uint32_t, ncl->c_len);
}
*clist = first;
return (TRUE);
err_out:
clist_free(first);
return (FALSE);
}
示例2: xdr_CSSM_KEYHEADER
bool_t xdr_CSSM_KEYHEADER(XDR *xdrs, CSSM_KEYHEADER *objp)
{
if (!xdr_CSSM_HEADERVERSION(xdrs, &objp->HeaderVersion))
return (FALSE);
if (!xdr_CSSM_GUID(xdrs, &objp->CspId))
return (FALSE);
if (!xdr_CSSM_KEYBLOB_TYPE(xdrs, &objp->BlobType))
return (FALSE);
if (!xdr_CSSM_KEYBLOB_FORMAT(xdrs, &objp->Format))
return (FALSE);
if (!xdr_CSSM_ALGORITHMS(xdrs, &objp->AlgorithmId))
return (FALSE);
if (!xdr_CSSM_KEYCLASS(xdrs, &objp->KeyClass))
return (FALSE);
if (!xdr_uint32(xdrs, &objp->LogicalKeySizeInBits))
return (FALSE);
if (!xdr_CSSM_KEYATTR_FLAGS(xdrs, &objp->KeyAttr))
return (FALSE);
if (!xdr_CSSM_KEYUSE(xdrs, &objp->KeyUsage))
return (FALSE);
if (!xdr_CSSM_DATE(xdrs, &objp->StartDate))
return (FALSE);
if (!xdr_CSSM_DATE(xdrs, &objp->EndDate))
return (FALSE);
if (!xdr_CSSM_ALGORITHMS(xdrs, &objp->WrapAlgorithmId))
return (FALSE);
if (!xdr_CSSM_ENCRYPT_MODE(xdrs, &objp->WrapMode))
return (FALSE);
if (!xdr_uint32(xdrs, &objp->Reserved))
return (FALSE);
return (TRUE);
}
示例3: xdr_CSSM_VERSION
bool_t xdr_CSSM_VERSION(XDR *xdrs, CSSM_VERSION *objp)
{
if (!xdr_uint32(xdrs, &objp->Major))
return (FALSE);
if (!xdr_uint32(xdrs, &objp->Minor))
return (FALSE);
return (TRUE);
}
示例4: xdr_CSSM_QUERY_LIMITS
bool_t xdr_CSSM_QUERY_LIMITS(XDR *xdrs, CSSM_QUERY_LIMITS *objp)
{
if (!xdr_uint32(xdrs, &objp->TimeLimit))
return (FALSE);
if (!xdr_uint32(xdrs, &objp->SizeLimit))
return (FALSE);
return (TRUE);
}
示例5: xdr_CSSM_RANGE
bool_t xdr_CSSM_RANGE(XDR *xdrs, CSSM_RANGE *objp)
{
if (!xdr_uint32(xdrs, &objp->Min))
return (FALSE);
if (!xdr_uint32(xdrs, &objp->Max))
return (FALSE);
return (TRUE);
}
示例6: xdr_specdata3
bool_t
xdr_specdata3(register XDR *xdrs, specdata3 *objp)
{
if (!xdr_uint32(xdrs, &objp->specdata1))
return (FALSE);
if (!xdr_uint32(xdrs, &objp->specdata2))
return (FALSE);
return (TRUE);
}
示例7: xdr_nfstime3
bool_t
xdr_nfstime3(register XDR *xdrs, nfstime3 *objp)
{
if (!xdr_uint32(xdrs, &objp->seconds))
return (FALSE);
if (!xdr_uint32(xdrs, &objp->nseconds))
return (FALSE);
return (TRUE);
}
示例8: xdr_specdata3
bool_t
xdr_specdata3 (XDR *xdrs, specdata3 *objp)
{
if (!xdr_uint32 (xdrs, &objp->specdata1))
return FALSE;
if (!xdr_uint32 (xdrs, &objp->specdata2))
return FALSE;
return TRUE;
}
示例9: xdr_nfstime3
bool_t
xdr_nfstime3 (XDR *xdrs, nfstime3 *objp)
{
if (!xdr_uint32 (xdrs, &objp->seconds))
return FALSE;
if (!xdr_uint32 (xdrs, &objp->nseconds))
return FALSE;
return TRUE;
}
示例10: xdr_FSINFO3resok
bool_t
xdr_FSINFO3resok(register XDR *xdrs, FSINFO3resok *objp)
{
if (!xdr_post_op_attr(xdrs, &objp->obj_attributes))
return (FALSE);
if (!xdr_uint32(xdrs, &objp->rtmax))
return (FALSE);
if (!xdr_uint32(xdrs, &objp->rtpref))
return (FALSE);
if (!xdr_uint32(xdrs, &objp->rtmult))
return (FALSE);
if (!xdr_uint32(xdrs, &objp->wtmax))
return (FALSE);
if (!xdr_uint32(xdrs, &objp->wtpref))
return (FALSE);
if (!xdr_uint32(xdrs, &objp->wtmult))
return (FALSE);
if (!xdr_uint32(xdrs, &objp->dtpref))
return (FALSE);
if (!xdr_size3(xdrs, &objp->maxfilesize))
return (FALSE);
if (!xdr_nfstime3(xdrs, &objp->time_delta))
return (FALSE);
if (!xdr_uint32(xdrs, &objp->properties))
return (FALSE);
return (TRUE);
}
示例11: xdr_ex_fattr3
bool_t
xdr_ex_fattr3(XDR *xdrs, ex_fattr3 *objp)
{
register int32_t *buf;
if (!xdr_ftype3(xdrs, &objp->type)) {
return (FALSE);
}
if (!xdr_uint32(xdrs, &objp->mode)) {
return (FALSE);
}
if (!xdr_uint32(xdrs, &objp->nlink)) {
return (FALSE);
}
if (!xdr_uint32(xdrs, &objp->uid)) {
return (FALSE);
}
if (!xdr_uint32(xdrs, &objp->gid)) {
return (FALSE);
}
if (!xdr_uint64(xdrs, &objp->size)) {
return (FALSE);
}
if (!xdr_uint64(xdrs, &objp->used)) {
return (FALSE);
}
if (!xdr_specdata3(xdrs, &objp->rdev)) {
return (FALSE);
}
if (!xdr_uint64(xdrs, &objp->fsid)) {
return (FALSE);
}
if (!xdr_uint64(xdrs, &objp->fileid)) {
return (FALSE);
}
if (!xdr_nfstime3(xdrs, &objp->atime)) {
return (FALSE);
}
if (!xdr_nfstime3(xdrs, &objp->mtime)) {
return (FALSE);
}
if (!xdr_nfstime3(xdrs, &objp->ctime)) {
return (FALSE);
}
if (!xdr_uint32(xdrs, &objp->expire)) {
return (FALSE);
}
return (TRUE);
}
示例12: xdr_fsinfo3resok
bool_t
xdr_fsinfo3resok (XDR *xdrs, fsinfo3resok *objp)
{
if (!xdr_post_op_attr (xdrs, &objp->obj_attributes))
return FALSE;
if (!xdr_uint32 (xdrs, &objp->rtmax))
return FALSE;
if (!xdr_uint32 (xdrs, &objp->rtpref))
return FALSE;
if (!xdr_uint32 (xdrs, &objp->rtmult))
return FALSE;
if (!xdr_uint32 (xdrs, &objp->wtmax))
return FALSE;
if (!xdr_uint32 (xdrs, &objp->wtpref))
return FALSE;
if (!xdr_uint32 (xdrs, &objp->wtmult))
return FALSE;
if (!xdr_uint32 (xdrs, &objp->dtpref))
return FALSE;
if (!xdr_size3 (xdrs, &objp->maxfilesize))
return FALSE;
if (!xdr_nfstime3 (xdrs, &objp->time_delta))
return FALSE;
if (!xdr_uint32 (xdrs, &objp->properties))
return FALSE;
return TRUE;
}
示例13: xdr_nfstime3
bool_t
xdr_nfstime3(XDR *xdrs, nfstime3 *objp)
{
register int32_t *buf;
if (!xdr_uint32(xdrs, &objp->seconds)) {
return (FALSE);
}
if (!xdr_uint32(xdrs, &objp->nseconds)) {
return (FALSE);
}
return (TRUE);
}
示例14: xdr_specdata3
bool_t
xdr_specdata3(XDR *xdrs, specdata3 *objp)
{
register int32_t *buf;
if (!xdr_uint32(xdrs, &objp->major)) {
return (FALSE);
}
if (!xdr_uint32(xdrs, &objp->minor)) {
return (FALSE);
}
return (TRUE);
}
示例15: xdr_clist
/*
* Not all fields in struct clist are interesting to the RPC over RDMA
* protocol. Only XDR the interesting fields.
*/
bool_t
xdr_clist(XDR *xdrs, clist *objp)
{
if (!xdr_uint32(xdrs, &objp->c_xdroff))
return (FALSE);
if (!xdr_uint32(xdrs, &objp->c_smemhandle.mrc_rmr))
return (FALSE);
if (!xdr_uint32(xdrs, &objp->c_len))
return (FALSE);
if (!xdr_uint64(xdrs, &objp->w.c_saddr))
return (FALSE);
if (!xdr_do_clist(xdrs, &objp->c_next))
return (FALSE);
return (TRUE);
}