MCPcopy Create free account
hub / github.com/BaseXdb/basex / txt

Method txt

basex-core/src/main/java/org/basex/data/DiskData.java:305–308  ·  view source on GitHub ↗

Returns a text (text, comment, pi) or attribute value. @param offset text offset @param text text or attribute flag @return text

(final long offset, final boolean text)

Source from the content-addressed store, hash-verified

303 * @return text
304 */
305 private byte[] txt(final long offset, final boolean text) {
306 final byte[] txt = (text ? texts : values).readToken(offset & Compress.COMPRESS - 1);
307 return Compress.compressed(offset) ? Compress.unpack(txt) : txt;
308 }
309
310 @Override
311 public boolean inMemory() {

Callers 3

textMethod · 0.95
textItrMethod · 0.95
textDblMethod · 0.95

Calls 3

compressedMethod · 0.95
unpackMethod · 0.95
readTokenMethod · 0.45

Tested by

no test coverage detected