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

Method toString

basex-core/src/main/java/org/basex/util/Num.java:152–160  ·  view source on GitHub ↗

Returns a string representation of the specified number array. @param num numbers @return string

(final byte[] num)

Source from the content-addressed store, hash-verified

150 * @return string
151 */
152 public static String toString(final byte[] num) {
153 final StringBuilder sb = new StringBuilder();
154 final int pos = size(num);
155 for(int ip = 4; ip < pos; ip += length(num, ip)) {
156 if(ip > 4) sb.append(',');
157 sb.append(get(num, ip));
158 }
159 return sb.toString();
160 }
161
162 // PRIVATE STATIC METHODS =======================================================================
163

Callers 1

toStringMethod · 0.95

Calls 5

sizeMethod · 0.95
lengthMethod · 0.95
getMethod · 0.95
appendMethod · 0.65
toStringMethod · 0.65

Tested by

no test coverage detected