libgit2

git_blob_data_is_binary

Version:

Determine if the given content is most certainly binary or not; this is the same mechanism used by git_blob_is_binary but only looking at raw data.

Signature

int git_blob_data_is_binary(const char *data, size_t len);

Parameters

const char *
In
data

The blob data which content should be analyzed

size_t
In
len

The length of the data

Returns

int

1 if the content of the blob is detected as binary; 0 otherwise.

Versions