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

Method read

basex-core/src/main/java/org/basex/query/value/seq/IntSeq.java:49–55  ·  view source on GitHub ↗

Creates a value from the input stream. Called from Stores#read(DataInput, QueryContext). @param in data input @param type type @param qc query context @return value @throws IOException I/O exception

(final DataInput in, final Type type, final QueryContext qc)

Source from the content-addressed store, hash-verified

47 * @throws IOException I/O exception
48 */
49 public static Value read(final DataInput in, final Type type, final QueryContext qc)
50 throws IOException {
51 final int size = in.readNum();
52 final int[] values = new int[size];
53 for(int s = 0; s < size; s++) values[s] = (int) in.readLong();
54 return get(values, type);
55 }
56
57 @Override
58 public void write(final DataOutput out) throws IOException {

Callers

nothing calls this directly

Calls 3

getMethod · 0.95
readLongMethod · 0.80
readNumMethod · 0.45

Tested by

no test coverage detected