void writeMapHeader ( int size ) throws IOException { if ( size < 16 ) { output . writeByte ( MIN_FIX_MAP + size ) ; } else if ( size < 65536 ) { output . writeByte ( MAP_16 ) ; output . writeShort ( size ) ; } else { output . writeByte ( MAP_32 ) ; output . writeInt ( size ) ; } }
Writes a MessagePack map header .