/** String: size = variable */
 public static int getLength(byte[] b, int offset) {
   int len = arrayToInteger(b, offset);
   return StrictMath.max(0, len) + 4;
 }