MCPcopy Index your code
hub / github.com/git/git / buffer_is_binary

Function buffer_is_binary

xdiff-interface.c:198–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196
197#define FIRST_FEW_BYTES 8000
198int buffer_is_binary(const char *ptr, unsigned long size)
199{
200 if (FIRST_FEW_BYTES < size)
201 size = FIRST_FEW_BYTES;
202 return !!memchr(ptr, 0, size);
203}
204
205struct ff_regs {
206 int nr;

Callers 6

entry_is_binaryFunction · 0.85
grep_source_is_binaryFunction · 0.85
ll_xdl_mergeFunction · 0.85
show_patch_diffFunction · 0.85
diff_filespec_is_binaryFunction · 0.85
cmd_merge_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected