protected void putUnversionedDoubleOrLong ( Number number , CodedOutputStream out ) throws IOException { if ( number instanceof Double ) { out . writeRawByte ( Constants . B_DOUBLE ) ; out . writeDoubleNoTag ( number . doubleValue ( ) ) ; } else { out . writeRawByte ( Constants . B_I64 ) ; out . writeRawVarint64 ( number . longValue ( ) ) ; } }
put out a number prefaced only by a type .