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

Method x_putbytes

src/common/xdr.cpp:941–964  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

939
940
941bool_t xdr_t::x_putbytes(const SCHAR* buff, unsigned bytecount)
942{
943/**************************************
944 *
945 * m e m _ p u t b y t e s
946 *
947 **************************************
948 *
949 * Functional description
950 * Put a bunch of bytes to a memory stream if it fits.
951 *
952 **************************************/
953 if (x_handy < bytecount)
954 return FALSE;
955
956 if (bytecount)
957 {
958 memcpy(x_private, buff, bytecount);
959 x_private += bytecount;
960 x_handy -= bytecount;
961 }
962
963 return TRUE;
964}
965
966xdr_t::~xdr_t()
967{ }

Callers 1

PUTLONGFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected