Typedefs and bytes conversions