[Clamav-devel] Confusion with Offset for cl_fmap_open_callback
Markus Kolb
markus.kolb+clamav at tower-net.de
Thu Mar 23 15:24:04 UTC 2023
Am 23. März 2023 11:45:45 UTC schrieb Lloyd Kinsella <lloyd at kinwood.net>:
>* @param buf A buffer to read data into, must be at least offset + count
>* @param count The number of bytes to read.
>* @param offset The the offset into buf to read the data to. If
I think the param description is quite clear...
buf needs to be of size offset + count, so offset specifies the start point where to store count number of bytes in buf.
More information about the clamav-devel
mailing list