On 01/08/2013 07:52 PM, Kirk, Benjamin (JSC-EG311) wrote:
> On Jan 8, 2013, at 3:58 PM, John Peterson <[email protected]> wrote:
>
>> Are you thinking of xdr_setpos? There is a cryptic warning about it
>> in 'man xdr'...
>>
>> int xdr_setpos(XDR *xdrs, u_int pos)
>> A macro that invokes the set position routine associated with
>> the XDR stream xdrs. The pos argument is a position value obtained
>> from xdr_getpos(). This routine returns one if the XDR stream could
>> be repositioned, and zero otherwise.
>> Warning: it is difficult to reposition some types of XDR
>> streams, so this routine may fail with one type of stream and succeed
>> with another.
> I don't think this will be an issue in this case, though… I believe an "XDR
> Stream" is generic in that it could be a network streamed connection, in
> which case you can't seek forward beyond what has been sent. That's not a
> problem when the stream is from file, though.
I'm going to make a patch that does this (with xdr_setpos) for my
application; something like
Xdr::seek(unsigned int n)
{
xdr_setpos(xdrs, xdr_getpos(xdrs) + n);
}
any interest in including that in libmesh?
> -Ben
------------------------------------------------------------------------------
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users