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

Function xdr_bytes

src/remote/protocol.cpp:1196–1212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1194
1195
1196static bool_t xdr_bytes(RemoteXdr* xdrs, void* bytes, ULONG size)
1197{
1198 switch (xdrs->x_op)
1199 {
1200 case XDR_ENCODE:
1201 if (!xdrs->x_putbytes(reinterpret_cast<const SCHAR*>(bytes), size))
1202 return FALSE;
1203 break;
1204
1205 case XDR_DECODE:
1206 if (!xdrs->x_getbytes(reinterpret_cast<SCHAR*>(bytes), size))
1207 return FALSE;
1208 break;
1209 }
1210
1211 return TRUE;
1212}
1213
1214
1215ULONG xdr_protocol_overhead(P_OP op)

Callers 1

xdr_blob_streamFunction · 0.85

Calls 2

x_putbytesMethod · 0.45
x_getbytesMethod · 0.45

Tested by

no test coverage detected