本文整理汇总了C++中xdr_string函数的典型用法代码示例。如果您正苦于以下问题:C++ xdr_string函数的具体用法?C++ xdr_string怎么用?C++ xdr_string使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了xdr_string函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: xdr_cvstool_date
bool_t
xdr_cvstool_date (XDR *xdrs, cvstool_date *objp)
{
register int32_t *buf;
if (!xdr_string (xdrs, objp, CVSTOOL_DATELEN))
return FALSE;
return TRUE;
}
示例2: xdr_cvstool_tag
bool_t
xdr_cvstool_tag (XDR *xdrs, cvstool_tag *objp)
{
register int32_t *buf;
if (!xdr_string (xdrs, objp, CVSTOOL_TAGLEN))
return FALSE;
return TRUE;
}
示例3: xdr_ndmp3_tape_open_request
bool_t
xdr_ndmp3_tape_open_request (XDR *xdrs, ndmp3_tape_open_request *objp)
{
if (!xdr_string (xdrs, &objp->device, ~0))
return FALSE;
if (!xdr_ndmp3_tape_open_mode (xdrs, &objp->mode))
return FALSE;
return TRUE;
}
示例4: xdr_cvstool_path
bool_t
xdr_cvstool_path (XDR *xdrs, cvstool_path *objp)
{
register int32_t *buf;
if (!xdr_string (xdrs, objp, CVSTOOL_PATHLEN))
return FALSE;
return TRUE;
}
示例5: xdr_nfspath
bool_t
xdr_nfspath (XDR *xdrs, nfspath *objp)
{
register int32_t *buf;
if (!xdr_string (xdrs, objp, NFS_MAXPATHLEN))
return FALSE;
return TRUE;
}
示例6: xdr_ndmp3_log_file_request
bool_t
xdr_ndmp3_log_file_request (XDR *xdrs, ndmp3_log_file_request *objp)
{
if (!xdr_string (xdrs, &objp->name, ~0))
return FALSE;
if (!xdr_ndmp3_error (xdrs, &objp->error))
return FALSE;
return TRUE;
}
示例7: xdr_direntry
bool_t
xdr_direntry (XDR *xdrs, direntry *objp)
{
register int32_t *buf;
if (!xdr_string (xdrs, &objp->dirname, ~0))
return FALSE;
return TRUE;
}
示例8: xdr_String
bool_t
xdr_String (XDR *xdrs, String *objp)
{
register int32_t *buf;
if (!xdr_string (xdrs, objp, MAXSTRINGLEN))
return FALSE;
return TRUE;
}
示例9: xdr_dirpath
bool_t
xdr_dirpath (XDR *xdrs, dirpath *objp)
{
if (!xdr_string (xdrs, objp, MNTPATHLEN))
return FALSE;
return TRUE;
}
示例10: xdr_name
bool_t
xdr_name (XDR *xdrs, name *objp)
{
if (!xdr_string (xdrs, objp, MNTNAMLEN))
return FALSE;
return TRUE;
}
示例11: nis_xdr_mapname
static
bool_t
nis_xdr_mapname(XDR *xdrs, mapname *objp)
{
if (!xdr_string(xdrs, objp, YPMAXMAP)) {
return (FALSE);
}
return (TRUE);
}
示例12: nis_xdr_domainname
static
bool_t
nis_xdr_domainname(XDR *xdrs, domainname *objp)
{
if (!xdr_string(xdrs, objp, YPMAXDOMAIN)) {
return (FALSE);
}
return (TRUE);
}
示例13: xdr_netnamestr
bool_t
xdr_netnamestr (XDR *xdrs, netnamestr *objp)
{
register int32_t *buf;
if (!xdr_string (xdrs, objp, MAXNETNAMELEN))
return FALSE;
return TRUE;
}
示例14: xdr_ndmp9_file
bool_t
xdr_ndmp9_file (XDR *xdrs, ndmp9_file *objp)
{
if (!xdr_string (xdrs, &objp->unix_path, ~0))
return FALSE;
if (!xdr_ndmp9_file_stat (xdrs, &objp->fstat))
return FALSE;
return TRUE;
}
示例15: xdr_ndmp3_auth_md5
bool_t
xdr_ndmp3_auth_md5 (XDR *xdrs, ndmp3_auth_md5 *objp)
{
if (!xdr_string (xdrs, &objp->auth_id, ~0))
return FALSE;
if (!xdr_opaque (xdrs, objp->auth_digest, 16))
return FALSE;
return TRUE;
}