Lines Matching refs:mem_buf
1097 static unsigned char *mem_buf;
1108 if (mem_buf == NULL)
1109 mem_buf = malloc (PBUFSIZ+POVERHSIZ);
1275 if (valgrind_read_memory (mem_addr, mem_buf, len) == 0)
1276 convert_int_to_ascii (mem_buf, own_buf, len);
1281 decode_M_packet (&own_buf[1], &mem_addr, &len, mem_buf);
1282 if (valgrind_write_memory (mem_addr, mem_buf, len) == 0)
1289 &mem_addr, &len, mem_buf) < 0
1290 || valgrind_write_memory (mem_addr, mem_buf, len) != 0)