Esempio n. 1
0
 /**
  * Sets the distance.
  *
  * @param pre pre value
  * @param kind node kind
  * @param value value
  */
 public void dist(final int pre, final int kind, final int value) {
   if (kind == ATTR) table.write1(pre, 0, value << 3 | ATTR);
   else if (kind != DOC) table.write4(pre, kind == ELEM ? 4 : 8, value);
 }
Esempio n. 2
0
 /**
  * Sets the size value.
  *
  * @param pre pre reference
  * @param kind node kind
  * @param value value to be stored
  */
 public final void size(final int pre, final int kind, final int value) {
   if (kind == ELEM || kind == DOC) table.write4(pre, 8, value);
 }