memcpy_offset() fn

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jollamobile.com>