Merge pull request #1 from iilyak/export-struct-function-for-binary