MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / CAN_slice

Function CAN_slice

src/burp/canonical.cpp:263–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261
262
263ULONG CAN_slice(lstring* buffer, lstring* slice, bool direction, UCHAR* sdl)
264{
265/**************************************
266 *
267 * C A N _ s l i c e
268 *
269 **************************************
270 *
271 * Functional description
272 * encode and decode canonical backup.
273 *
274 **************************************/
275 BurpXdr xdr;
276 BurpXdr* xdrs = &xdr;
277
278 xdr_init(xdrs, buffer, direction ? XDR_ENCODE : XDR_DECODE);
279
280 xdr_slice(xdrs, slice, /*sdl_length,*/ sdl);
281 return (xdrs->x_private - xdrs->x_base);
282}
283
284
285bool_t BurpXdr::x_getbytes(SCHAR* buff, unsigned bytecount)

Callers

nothing calls this directly

Calls 2

xdr_initFunction · 0.85
xdr_sliceFunction · 0.70

Tested by

no test coverage detected