code: public int lastIndexOf(byte b) {
          byte[] bytes = getByteArray();
          int offset = getByteOffset();
          int i = getByteLength() - 1;
          while (i >= 0 && bytes[offset + i] != b) i--;
          return i;
      }
docs: Returns last occurrence of byte b in this name, -1 if not found.