lib/xdr.js
function XDR(buf) {
    if (buf)
        assert.ok(Buffer.isBuffer(buf), 'buffer is required');

    this.xdr_buffer = buf || null;
    this.xdr_offset = 0;
}
function XDR(buf) {
    if (buf)
        assert.ok(Buffer.isBuffer(buf), 'buffer is required');

    this.xdr_buffer = buf || null;
    this.xdr_offset = 0;
}
/--- API 
A set of helper functions for "serdes" on XDR datatypes.

Really the purpose to this utility is to keep track of an offset
so upstack code is cleaner.

For a full description, see: http://tools.ietf.org/html/rfc4506