question: public static void writeStringASCII ( ByteBuf stream , String str ) throws UnsupportedEncodingException { final byte [ ] bytes = str . getBytes ( "US-ASCII" ) ; stream . writeInt ( str . length ( ) ) ; stream . writeBytes ( bytes ) ; }
target:  Writes an ASCII string to the stream, the first value will be an integer for the length of the string, followed by bytes