(final int pre, final boolean text)
| 286 | } |
| 287 | |
| 288 | @Override |
| 289 | public int textLen(final int pre, final boolean text) { |
| 290 | final long value = textRef(pre); |
| 291 | if(Inline.inlined(value)) return Inline.unpackLength(value); |
| 292 | |
| 293 | final DataAccess da = text ? texts : values; |
| 294 | final int l = da.readNum(value & Compress.COMPRESS - 1); |
| 295 | // if text is compressed, read number of compressed bytes |
| 296 | return Compress.compressed(value) ? da.readNum() : l; |
| 297 | } |
| 298 | |
| 299 | /** |
| 300 | * Returns a text (text, comment, pi) or attribute value. |
nothing calls this directly
no test coverage detected