Adds an attribute to the internal update buffer. @param dist parent distance @param nameId ID of attribute name @param value attribute value @param uriId ID of namespace URI
(final int dist, final int nameId, final byte[] value, final int uriId)
| 1016 | * @param uriId ID of namespace URI |
| 1017 | */ |
| 1018 | public final void attr(final int dist, final int nameId, final byte[] value, final int uriId) { |
| 1019 | // add attribute to text storage |
| 1020 | final int id = newID(); |
| 1021 | final long v = textRef(value, false); |
| 1022 | s(Math.min(IO.MAXATTS, dist) << 3 | ATTR); |
| 1023 | s(nameId >> 8); s(nameId); s(v >> 32); |
| 1024 | s(v >> 24); s(v >> 16); s(v >> 8); s(v); |
| 1025 | s(0); s(0); s(0); s(uriId); |
| 1026 | s(id >> 24); s(id >> 16); s(id >> 8); s(id); |
| 1027 | } |
| 1028 | |
| 1029 | /** |
| 1030 | * Stores the specified value in the update buffer. |