Simplistic API to handle basic data types in binary