MCPcopy Index your code
hub / github.com/oshi/oshi / getDescriptorText

Method getDescriptorText

oshi-core/src/main/java/oshi/util/EdidUtil.java:232–234  ·  view source on GitHub ↗

Parse descriptor text @param desc An 18-byte VESA descriptor @return Plain text starting at the 4th byte

(byte[] desc)

Source from the content-addressed store, hash-verified

230 * @return Plain text starting at the 4th byte
231 */
232 public static String getDescriptorText(byte[] desc) {
233 return new String(Arrays.copyOfRange(desc, 4, 18), StandardCharsets.US_ASCII).trim();
234 }
235
236 /**
237 * Parse an EDID byte array into user-readable information

Callers 3

getDisplayMethod · 0.95
testGetDescriptorsMethod · 0.95
toStringMethod · 0.95

Calls

no outgoing calls

Tested by 1

testGetDescriptorsMethod · 0.76