public static String deserializeString(byte[] buffer,MutableInt offset){
  int length=deserializeInt(buffer,offset);
  String val=new String(buffer,offset.intValue(),length);
  offset.add(length);
  return val;
}

public static String deserializeString ( byte [ ] buffer , MutableInt offset ) { int length = deserializeInt ( buffer , offset ) ; String val = new String ( buffer , offset . intValue ( ) , length ) ; offset . add ( length ) ; return val ; }
this method deserializes a string from the given byte array from the given offset , and increments the offset appropriately .
