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

Function DEBUG_PRINTSIZE

src/remote/protocol.cpp:143–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141#ifdef DEBUG
142static ULONG xdr_save_size = 0;
143inline void DEBUG_PRINTSIZE(RemoteXdr* xdrs, P_OP p)
144{
145 fprintf (stderr, "xdr_protocol: %s op %d size %lu\n",
146 ((xdrs->x_op == XDR_FREE) ? "free" :
147 (xdrs->x_op == XDR_ENCODE) ? "enc " : (xdrs->x_op == XDR_DECODE) ? "dec " : "othr"),
148 p,
149 ((xdrs->x_op == XDR_ENCODE) ?
150 (xdrs->x_handy - xdr_save_size) : (xdr_save_size - xdrs->x_handy)));
151}
152#else
153inline void DEBUG_PRINTSIZE(RemoteXdr*, P_OP)
154{

Callers 3

xdr_protocolFunction · 0.85
xdr_messageFunction · 0.85
xdr_packed_messageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected