MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / net_store_length_fast

Function net_store_length_fast

sql/protocol.cc:417–427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415*/
416
417static uchar *net_store_length_fast(uchar *packet, uint length)
418{
419 if (length < 251)
420 {
421 *packet=(uchar) length;
422 return packet+1;
423 }
424 *packet++=252;
425 int2store(packet,(uint) length);
426 return packet+2;
427}
428
429/**
430 Send the status of the current statement execution over network.

Callers 1

net_store_dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected