/** * Gets the bytes for the formula * * @return the bytes in RPN */ public byte[] getBytes() { byte[] bytes = root.getBytes(); if (root.isVolatile()) { byte[] newBytes = new byte[bytes.Length + 4]; System.Array.Copy(bytes, 0, newBytes, 4, bytes.Length); newBytes[0] = Token.ATTRIBUTE.getCode(); newBytes[1] = (byte)0x1; bytes = newBytes; } return(bytes); }
/** * Gets the bytes for the formula. This takes into account any * token mapping necessary because of shared formulas * * @return the bytes in RPN */ public byte[] getBytes() { return(root.getBytes()); }