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
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 |
buffer2 |
a buffer to diff to. |
buffer2_as_path |
treat |
diff_options |
a DiffOptions, or null. |
buffer1_len |
length of |
buffer2_len |
length of |
Returns:
a newly allocated Diff if there was no error, null otherwise. |