code: public void writeMediumString( String s ) {
          final byte[] bytes = DynamicByteBufferHelper.bytes( s );
          this.addUnsignedShort( bytes.length );
          this.add( bytes );
      }
docs: Write medium string.
  
  @param s the s