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

Method x_getbytes

src/common/xdr.cpp:894–917  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

892}
893
894bool_t xdr_t::x_getbytes(SCHAR* buff, unsigned bytecount)
895{
896/**************************************
897 *
898 * m e m _ g e t b y t e s
899 *
900 **************************************
901 *
902 * Functional description
903 * Get a bunch of bytes from a memory stream if it fits.
904 *
905 **************************************/
906 if (x_handy < bytecount)
907 return FALSE;
908
909 if (bytecount)
910 {
911 memcpy(buff, x_private, bytecount);
912 x_private += bytecount;
913 x_handy -= bytecount;
914 }
915
916 return TRUE;
917}
918
919
920SLONG xdr_peek_long(const xdr_t* xdrs, const void* data, size_t size)

Callers 1

GETLONGFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected