xdr_buf_trim(9)

xdr_buf_trim9

Lop at most “len” bytes off the end of “buf”

Usage

void xdr_buf_trim(struct xdr_buf * buf, unsigned int len);

Arguments

buf

buf to be trimmed

len

number of bytes to reduce “buf” by

Overview

Trim an xdr_buf by the given number of bytes by fixing up the lengths. Note that it's possible that we'll trim less than that amount if the xdr_buf is too small, or if (for instance) it's all in the head and the parser has already read too far into it.

Releases

2 releases since Debian 8 (Jessie); the text changed 1 time.

  1. 8
  2. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.