How to write bits into a user-defined primitive type?

This may help:

1 Like