if(lengths[1]> 127) {
      bufferUtils.setInt32(buffer, index, lengths[1]+ 2147483648);
      index += 4;
    }
    else {