public void writeStringLenenc ( final String value ) { if ( Strings . isNullOrEmpty ( value ) ) { byteBuf . writeByte ( 0 ) ; return ; } writeIntLenenc ( value . getBytes ( ) . length ) ; byteBuf . writeBytes ( value . getBytes ( ) ) ; }
Write lenenc string to byte buffers .