public static void writeString ( ByteBuffer buffer , String s ) throws IOException { if ( s == null ) { s = "" ; // Which will be written as Varint 0 = single byte 0. } ByteArrayUtil . STRING_SERIALIZER . toByteBuffer ( buffer , s ) ; }
Write a string to the buffer .