Diff.buffers


Description:

[ CCode ( has_construct_function = false ) ]
public Diff.buffers (uint8[]? buffer1, string? buffer1_as_path, uint8[]? buffer2, string? buffer2_as_path, DiffOptions? diff_options) throws Error

Same as blobs but using a buffers.

Creates a Diff which compares buffer1 and buffer2.

If diff_options is null then the defaults specified in DiffOptions are used.

Parameters:

buffer1

a buffer to diff from.

buffer1_as_path

treat buffer1 as if it had this filename, or null,

buffer2

a buffer to diff to.

buffer2_as_path

treat buffer2 as if it had this filename, or null,

diff_options

a DiffOptions, or null.

buffer1_len

length of buffer1.

buffer2_len

length of buffer2.

Returns:

a newly allocated Diff if there was no error, null otherwise.