public static String formatByteOrderEncoding ( final ByteOrder byteOrder , final PrimitiveType primitiveType ) { switch ( primitiveType . size ( ) ) { case 2 : return "SBE_" + byteOrder + "_ENCODE_16" ; case 4 : return "SBE_" + byteOrder + "_ENCODE_32" ; case 8 : return "SBE_" + byteOrder + "_ENCODE_64" ; default : return "" ; } }
Return the Cpp98 formatted byte order encoding string to use for a given byte order and primitiveType