User Tools

Site Tools


Sidebar

Table Of Contents

endurox:v7.5.x:api:ubf:bproj.3

bproj

Name

Bproj — projection on buffer

Synopsis

#include <ubf.h>

int Bproj (UBFH * p_ub, BFLDID * fldlist);

Link with -lubf -lnstd -lm -lpthread

DESCRIPTION

This function removes any un-needed field from buffer p_ub and keeps only the list of field identifiers found in fldlist array. The array must be terminated with BBADFLDID.

RETURN VALUE

On success, Bproj() return zero; on error, -1 is returned, with Berror set to indicate the error.

ERRORS

Note that Bstrerror() returns generic error message plus custom message with debug info from last function call.

BALIGNERR Corrupted buffer or pointing to not aligned memory area.

BNOTFLD Buffer not fielded, not correctly allocated or corrupted.

EXAMPLE

See ubftest/test_bproj.c for sample code.

BUGS

Report bugs to support@mavimax.com

SEE ALSO

Bprojcpy(3)

COPYING

© Mavimax, Ltd