Function
HexBufferutil_new
Description
Utility function to create an on object which implements the HexBuffer interface.
The plugin parameter will be the unique part of the plugin file name (eg,
if the file name is libhex-buffer-mmap.so, you would specify “mmap”). If
NULL is passed, the fallback (presently the “malloc” backend, but this is
an implementation detail and may be subject to change) will be used.
The file parameter is a valid GFile if you would like the buffer
pre-loaded, or NULL for an empty buffer.
Parameters
plugin |
const char* |
The name of the plugin, or |
|
The argument can be NULL. | |
| The data is owned by the caller of the function. | |
| The value is a NUL terminated UTF-8 string. | |
file |
GFile |
File to initialize the buffer with, or |
|
The argument can be NULL. | |
| The data is owned by the caller of the function. |