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

Function initialize_buffer

extra/replace.c:935–946  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

933static uint out_length;
934
935static int initialize_buffer()
936{
937 bufread = 8192;
938 bufalloc = bufread + bufread / 2;
939 if (!(buffer = my_malloc(bufalloc+1,MYF(MY_WME))))
940 return 1;
941 bufbytes=my_eof=0;
942 out_length=bufread;
943 if (!(out_buff=my_malloc(out_length,MYF(MY_WME))))
944 return(1);
945 return 0;
946}
947
948static void reset_buffer()
949{

Callers 1

mainFunction · 0.85

Calls 1

my_mallocFunction · 0.85

Tested by

no test coverage detected