MCPcopy Create free account
hub / github.com/BirolLab/RNA-Bloom / bytesToString

Method bytesToString

src/rnabloom/util/SeqUtils.java:81–89  ·  view source on GitHub ↗
(byte[] bytes, int len)

Source from the content-addressed store, hash-verified

79 }
80
81 public static final String bytesToString(byte[] bytes, int len) {
82 StringBuilder sb = new StringBuilder(len);
83
84 for (byte b : bytes) {
85 sb.append((char) b);
86 }
87
88 return sb.toString();
89 }
90
91 public static final String bytesToString(byte[] bytes, int start, int end) {
92 StringBuilder sb = new StringBuilder(end-start);

Callers 1

toStringMethod · 0.80

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected