Added "return offset;" to end of generated function.
drwxr-xr-x - source4